removed opts check for decrypt inside of encrypt function, and removed check for encrypt opts inside decrypt function.