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

Embiggen API key #3195

Closed
JamesNK opened this issue Mar 26, 2024 · 2 comments · Fixed by #3213
Closed

Embiggen API key #3195

JamesNK opened this issue Mar 26, 2024 · 2 comments · Fixed by #3213

Comments

@JamesNK
Copy link
Member

JamesNK commented Mar 26, 2024

Guid.NewGuid().ToString() isn't secure enough. What API should be used to generate the right level of randomness?

@danegsta
Copy link
Member

Should be using methods from the System.Security.Cryptography namespace for getting random bytes. System.Security.Cryptography.RandomNumberGenerator.GetBytes(32);, for example. Then use something like Convert.ToBase64String to encode.

@kvenkatrajan kvenkatrajan added this to the preview 6 (Apr) milestone Apr 2, 2024
@kvenkatrajan
Copy link
Member

@JamesNK is this being done in the current auth PR for securing localhost?

@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants