Protect, Encrypt and Decrypt methods updated