Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better encryption #15

Merged
merged 3 commits into from
Aug 26, 2024
Merged

Better encryption #15

merged 3 commits into from
Aug 26, 2024

Conversation

TheBlackbird14
Copy link
Owner

No description provided.

AES-256-CBC encrypted credentials are now saved in a secure cookie in the browser after POSTing to the /login point. key and IV are stored in the user DB. The user is authenticated through auth.guard.ts and decrypted credentials are passed on.
IV is individual to every device and is saved in the browser. key in the DB has expiry date, after which the user cannot be authenticated anymore.
@TheBlackbird14 TheBlackbird14 merged commit 2150a85 into master Aug 26, 2024
3 checks passed
@TheBlackbird14 TheBlackbird14 deleted the better-encryption branch August 26, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant