I have an AES key that I generated using keytool:
keytool -genseckey -alias authenticationkey -keyalg AES -keysize 256 -keystore aes.jks -storepass foo -keypass bar -storetype JCEKS
Ignoring the problems with what I'm doing, I want to use the same key in a C # program. I can extract the key from Java and use it in C #.
I don’t think I can load the JCEKS repository in C #, and keytool will not let me create an AES key in the PKCS12 repository.
What is the correct AES key store format in C #?
source
share