javaencryption-symmetricnshield

nCipher Using KeySafe generated AES Key in java


We have a AES Key generated from KeySafe Utility provided by nCipher. How can we use this Key to encrypt data? Can we Create a KeyStore from the KeySafe generated Key?

I have found sample by creating blank keystore and creating new key from java code and saving in the keystore, But could not find anything on the KeySafe. Generating new Key from the java code is not feasible for us.


Solution

  • nCipher keys have an app type that identifies which one of the supported APIs they were generated for. Keys for the JCE provider have app type jcecsp. KeySafe can't generate jcecsp keys, so you probably have one of type simple or pkcs11 or something. You have several options:

    Contact Thales Support if you run into any issues.