Encrypting oAuth tokens

Considering refresh tokens can provide access to sensitive data, it would make sense to encrypt them when storing them in the database, but how would this work/is this possible with Wappler?

For logins you can encrypt using bCrypt or similar and use the verify password hash in Wappler, but how would you go about doing something similar for tokens?

We have an encrypt/decrypt formatter which could be used. Bcrypt or other hashes will not work in this case since they are one way and can’t be decrypted back.

1 Like