updated u1encrypt and decrypt