Encrypt/decrypt second version