Updating encrypt/decrypt code.