reidmorrison / symmetric-encryption

Symmetric Encryption for Ruby Projects using OpenSSL
https://logger.rocketjob.github.io/
Apache License 2.0
475 stars 92 forks source link

Decrypt during mongodb aggregation #164

Closed afuente90 closed 1 year ago

afuente90 commented 1 year ago

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

reidmorrison commented 1 year ago

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