Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何RSASSA-PKCS1-v1.5在 Java 中生成签名?
RSASSA-PKCS1-v1.5
实际上,我想知道如何java.security.Signature上课。
java.security.Signature
我必须使用任何 3rd 方库吗?
Sun JCE 支持 PKCS#1 签名。这就是你所要做的,
Signature signer = Signature.getInstance("SHA1withRSA"); signer.initSign(privateKey); signer.update(message); byte[] signature = signer.sign();