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

SIMID-308: Update sample to use web.crypto for generating session IDs. #430

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

nchavez324
Copy link
Collaborator

@nchavez324 nchavez324 commented Feb 24, 2022

This still generates a v4 UUID, as before. I chose crypto.getRandomValues over crypto.randomUUID since it supports much older browsers including IE, and doesn't require a secure context (HTTPS or localhost).

#308

I'll update the spec to include notes about using a cryptographically secure method in a separate PR.

@nchavez324 nchavez324 merged commit 1e65386 into master Feb 24, 2022
@nchavez324 nchavez324 deleted the crypto-secure-ids branch February 24, 2022 22:35
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.

2 participants