You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I was wondering why would one use NewEncryptionKey? As far as I know one creates/stores somewhere EncryptionKey and reuses it for every encryption/decryption (EncryptionKey has to be the same to decode token which has been encoded using the EncryptionKey).
The process of encoding and decoding is not entirely clear, it would be useful to provide some examples of encoding/decoding text, something like this:
In a use case I just wrote I'm actually generating a random encryption key for every bit of data stored and storing those keys encrypted by a master key. For a lot of use cases you are correct you'd have one well protected key and use it all the time.
Hello, I was wondering why would one use
NewEncryptionKey
? As far as I know one creates/stores somewhereEncryptionKey
and reuses it for every encryption/decryption (EncryptionKey
has to be the same to decode token which has been encoded using theEncryptionKey
).The process of encoding and decoding is not entirely clear, it would be useful to provide some examples of encoding/decoding text, something like this:
Is the example correct?
Are there any other things to be aware of?
The text was updated successfully, but these errors were encountered: