go-cryptkeeper
go-cryptkeeper copied to clipboard
Encrypted Column Query
Is it possible to query by an encrypted field? If yes, how would this be done?
I believe since the encrypted value would typically be larger than a checksummed value, you would also want to store a checksummed value and then query on that versus the encrypted value. In any case, either way, you would probably just have something like .Query("... where enc_value = ?", encValue) or .Query("where md5_value = ?", checksummedValue) if that makes sense?