added encryption key to output and tests