Sign data using PKCS #7 in JAVA

前端 未结 2 1913
后悔当初
后悔当初 2020-12-30 07:05

I want to sign a text file (may be a .exe file or something else in the future) using PKCS#7 and verify the signature using Java.

  1. What do I need
2条回答
  •  灰色年华
    2020-12-30 07:57

    PKCS#7 is known as CMS now (Cryptographic Message Syntax), and you will need the Bouncy Castle PKIX libraries to create one. It has ample documentation and a well established mailing list.

    I won't supply code snippet, it is against house rules. Try yourself first.

提交回复
热议问题