fix encrypt and decrypt in web form