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

Fix code scanning alert no. 20: Clear text storage of sensitive information #49

Closed
wants to merge 1 commit into from

Conversation

expoli
Copy link
Owner

@expoli expoli commented Dec 19, 2024

Fixes https://github.com/expoli/NotionNext/security/code-scanning/20

To fix the problem, we need to ensure that the password is encrypted before being stored in localStorage. We can use the crypto module in Node.js to encrypt the password. This will involve creating an encryption function and using it to encrypt the password before storing it.

  1. Import the crypto module.
  2. Create an encryption function that uses a secure algorithm to encrypt the password.
  3. Use this encryption function to encrypt the password before storing it in localStorage.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…mation

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
notion-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 3:49am

@expoli expoli marked this pull request as ready for review December 19, 2024 05:37
@expoli expoli closed this Dec 26, 2024
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