java - how to search encrypted data in grails -


i have domain 3 field cardno, cardname , account

class card {     string cardno     string cardname     account account  static constraints = {     cardno(blank:false, unique:true)     cardname(blank:false)     account(blank:false) } 

the cardno must encrypted when saved, used encryptionutil java encrypt it. on list screen, want make search fiture, can search cardno , cardname. possibe if search data encrypted create cretiria in grails?? if can't use create criteria, best way search encrypted data?? need help. before :)

i can give advice: avoid store card numbers in database. use payment services it.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -