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

Function to generate random bytes #252

Closed
MikaelSmith opened this issue Jun 25, 2020 · 0 comments · Fixed by #253
Closed

Function to generate random bytes #252

MikaelSmith opened this issue Jun 25, 2020 · 0 comments · Fixed by #253

Comments

@MikaelSmith
Copy link
Contributor

I'd like to add a randBytes function that generates a random byte array and returns a base64-encoded version of it. This is useful for generating a cryptographically random secret for certain applications.

MikaelSmith added a commit to MikaelSmith/sprig that referenced this issue Jun 25, 2020
Adds the randBytes function to cryptographically generate a
base64-encoded string of random bytes of a given length.

Resolves Masterminds#252.
This was referenced Jun 25, 2020
MikaelSmith added a commit to MikaelSmith/sprig that referenced this issue Nov 30, 2020
Adds the randBytes function to cryptographically generate a
base64-encoded string of random bytes of a given length.

Resolves Masterminds#252.
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 a pull request may close this issue.

1 participant