Access MS CryptoAPI using java

I tried to make good use of MS CAPI and surpassed a huge evil in myself ... The SunMSCapi provider only, hmm, provides, for lack of a better word, at least for signature, the following algorithms:

  • MD2withRSA
  • MD5withRSA
  • SHA1withRSA

And I do not want to use algorithms such as GOST3411withECGOST3410 , or RIPEMD128withRSA , which BouncyCastle uses, but it would be nice, and in this particular case, it is very important, if not essential, to be able to enter, at least, the SHA256withRSA algorithm ... (512 and so on and ECDSA encryption would be a big plus, but I do not expect this).

I am trying to find an alternative, but only found this shell that looks fine, but I need to dig it a bit.

Does anyone know another way, shell or provider to access mscapi (cryptoapi)?


on this topic:

+8
java sha256 mscapi cryptoapi
source share
2 answers

Take a look at the RSA bsafe share that supports RSA with SHA-256.

+1
source share

Java is a cross platform, if you choose SunMSCapi, you can only run on Windows with JDK 6+, and if you want SHA256withRSA, you need to run JDK7 +, it is. check the RSASignature.SHA256 code

+1
source share

All Articles