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

Query Db?

chabgood opened this issue · comments

Is there a way to querry the db for a particular record?

ex. DisclosureForm.find_by(encrypted_name: params[:name])

DisclosureForm.find_by(encrypted_name: SymmetricEncryption.encrypt(params[:name]))