Added boolean flags to encrypt method to eliminate separate decrypt methods
Added boolean flags to encrypt method to eliminate separate decrypt methods