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.5Javaで署名を生成する方法を誰か教えてもらえますか?
RSASSA-PKCS1-v1.5
私は、実際、java.security.Signatureクラスでどのようにすればよいか知りたいです。
java.security.Signature
サードパーティのライブラリを使用する必要がありますか?
Sun JCE は PKCS#1 署名をサポートしています。これはあなたがしなければならないすべてです、
Signature signer = Signature.getInstance("SHA1withRSA"); signer.initSign(privateKey); signer.update(message); byte[] signature = signer.sign();