Last active
April 26, 2024 23:25
-
-
Save 0xjjpa/9527c4ddd9beeba71dee75dea8b37957 to your computer and use it in GitHub Desktop.
One-liner for generating 32-bytes keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((_=>_.reduce((a, v)=>`${v.toString(16).padStart(2,"0")}${a}`,""))((_=>crypto.getRandomValues(_))(new Uint8Array(32)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment