The method encrypt on cryptography.fernet.MultiFernet uses only the first key to encrypt with. Noooot really key rotation. This pull requests uses random.choice to randomly select from your keys.
We could do an actual rotation with next and loop through the keys, but I think random is better. Thoughts?
The method
encrypt
oncryptography.fernet.MultiFernet
uses only the first key to encrypt with. Noooot really key rotation. This pull requests usesrandom.choice
to randomly select from your keys.We could do an actual rotation with next and loop through the keys, but I think random is better. Thoughts?