SecretKeySpec key1 = new SecretKeySpec(key.getEncoded(), keyVault);
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
cipher.init(Cipher.ENCRYPT_MODE, key1);
..........
I get " InvalidKeyException: Invalid AES key length: 44 bytes "
in the line : cipher.init(Cipher.ENCRYPT_MODE, key1);
Is it possible to use SecretKeySpec with Vault key ?
If yesm than how ?..
Thanks
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/f50203d0-b349-4520-87cf-44b1707abdef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.