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

Adds the ability to configure the secret key size generated. #1856

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

jwoertink
Copy link
Member

Purpose

Fixes #1847

Description

This allows you to pass an optional argument to the lucky gen.secret_key task to generate larger or smaller secret keys.

❯ lucky gen.secret_key
jyy8PODnOkPBUKVFd8pxM4YFbxyYTzYK44QoMiha+68=

❯ lucky gen.secret_key -n 64
uOBfVEGWo+t14g7F9vDA349b2OTURQAMfM13VeiMswNsd0YA0oykDP4XEzJcEjTk3PNV8KuiLwAMV4Vg7EhU3A==

Checklist

  • - An issue already exists detailing the issue/or feature request that this PR fixes
  • - All specs are formatted with crystal tool format spec src
  • - Inline documentation has been added and/or updated
  • - Lucky builds on docker with ./script/setup
  • - All builds and specs pass on docker with ./script/test

@jwoertink jwoertink merged commit 5f911c5 into main Mar 25, 2024
5 checks passed
@jwoertink jwoertink deleted the issues/1847 branch March 25, 2024 21:22
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.

Add an option to configure size of secret key
2 participants