I need to secure some long-term values in a database, some API tokens, is there any issue using Plug.Crypto
to do this? Plug.Crypto.encrypt(secret(), context, data, max_age: 500_000_000)
? I don’t know much how :crypto
works under the hood would such a long age present a problem?
I’m using Guardian in another app in the umbrella, it seems like overkill for just encrypting and decrypting a string but if it’s a best practice I’d be willing to rely on it.