Added key to encryptionhandler constructor