Stdlib: Secure random bytes and UUID generation #245
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add secure random number generation and UUID v4 support for tokens, session IDs, nonces, and unique identifiers.
Proposed API
Implementation
FFI wrappers around:
randcrate withOsRngfor cryptographic randomnessuuidcrate for UUID generationEstimated effort: Few hours
Deliverables Checklist
crates/runtime/src/crypto.rstests/integration/src/test-random.seqBUILTIN_SIGNATURES, docs inBUILTIN_DOCSexamples/crypto/token-generator.seqdocs/BATTERIES_INCLUDED.mdstatusUse Cases Unlocked
References
docs/BATTERIES_INCLUDED.mdPriority 4: Cryptographyhttps://github.com/navicore/patch-seq/pull/254