Hashing sessions and retrieving them using cookie(s) with session "id" and "token"

I’m implementing custom authentication & session management system in Node.js & PostgreSQL. My goal is to implement sessions that expire after 2 weeks (if not refreshed/renewed).
OWASP and other resources suggest to store unhashed … Continue reading Hashing sessions and retrieving them using cookie(s) with session "id" and "token"

How will biometrics be a safe way to authenticate users across the internet?

Let’s say Alice created a new account on a service and this service saved her fingerprint as a way of logging in later. Then Alice creates a new account on a new service, but unfortunately this second service is not properly secured and th… Continue reading How will biometrics be a safe way to authenticate users across the internet?

Rest Services Aunthentication and Authorization with AWS Cognito

I am designing the authentication and authorization flow of my mobile and web applications. I plan to use the AWS Cognito identity provider.

Use AWS Amplify and signup the user from the front-end.
Question: The signup will happen totally … Continue reading Rest Services Aunthentication and Authorization with AWS Cognito

Use-case for decentralized identifiers (DIDs) with unique identities for each relationship

The W3C working group is working on the standardization of Decentralized Identifiers (DIDs). I watched a video presentation about DIDs and the presenter mentioned several times the possibility of generating unique pseudonymous identities f… Continue reading Use-case for decentralized identifiers (DIDs) with unique identities for each relationship

Is it possible to calculate an encryption key when both the plain text and ciphertext are known?

I have implemented an authentication system which works like this:

Upon successful login, the server takes the username of client and encrypts it with AES-256.

This ciphertext is stored in the client’s browser and when the client wants t… Continue reading Is it possible to calculate an encryption key when both the plain text and ciphertext are known?