added password encrypt and decrypt helper