Closed jonatasrancan closed 7 years ago
Cipher.generate_random_keys
should probably output the keys according to the encoding rules in the config. I need more time later to research it further.
Likely relates to https://github.com/rocketjob/symmetric-encryption/issues/71
Excellent, Thank you :tada:
The same error that happened here https://github.com/rocketjob/symmetric-encryption/issues/72, happens for
development
andtest
enviorement.Because when the config file got read, the keys:
key and iv
, which exists under thedevelopment
andtest
keys, are loaded and passed to the Chiper.generate_random_keys, but they weren't removed, which causes the exception to be raised.What I did, is do to delete the keys from the params, if the else happens. This way the generate keys will continue working even if you don't pass any arg.