nthmost / python-secureconfig

Secure config files in JSON and .ini formats, ConfigParser style.
18 stars 10 forks source link

Key Generation #1

Open ghost opened 8 years ago

ghost commented 8 years ago

I am unable to get a token to pass validation or I see ValueError: Fernet key must be 32 url-safe base64-encoded bytes. Can you provide an example of how you are generating the keys and what the aes_key file looks like in working examples. I see in tests there is a key value but I see invalid token when trying to use these for testing. Your help is much appreciated. Im sure this is not an issue with project but my lack of experience with aes keys. @nthmost

kyledouglas commented 8 years ago

https://cryptography.io/en/latest/fernet/#cryptography.fernet.Fernet.generate_key

issue can be closed