luckyframework / lucky

A full-featured Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts.
https://luckyframework.org
MIT License
2.59k stars 156 forks source link

Add an option to configure size of secret key #1847

Closed jwoertink closed 6 months ago

jwoertink commented 10 months ago

It generates a 32 byte string by default, but you may need a 64 byte string like in the case of working with Hasura, or other systems. We should add an option to pass in different values for this.

lucky gen.secret_key -n 64

https://github.com/luckyframework/lucky/blob/8eef897212ebbcbb6f0735ae3d8c3381f44b2449/tasks/gen/secret_key.cr#L6-L8