reidmorrison / symmetric-encryption

Symmetric Encryption for Ruby Projects using OpenSSL

Home Page:https://logger.rocketjob.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decrypt during mongodb aggregation

afuente90 opened this issue · comments

Are there any way to make the decryption of the field during the mongodb aggregation?

If the result is bypassing the Mongoid models, then you can decrypt any value directly using SymmetricEncryption.decrypt