bug559 use of encrypt/decrypt methods