public SecretKey createEncryptionKey(byte[] keyBytes) {
        return new SecretKeySpec(keyBytes, DECRYPTION_KEY_GENERATION_ALGORITHM_NAME);
    }
Creates a new key suitable for decryption using the provided raw key
bytes. The algorithm used to generate this key is dictated by
DECRYPTION_KEY_GENERATION_ALGORITHM_NAME and must match the algorithm
used by decrypt().

@param keyBytes
    The raw bytes from which the encryption/decryption key should be
    generated.

@return
    A new key suitable for encryption or decryption, generated from the
    given bytes.
extensions/guacamole-auth-json/src/main/java/org/apache/guacamole/auth/json/CryptoService.java