node-rsa icon indicating copy to clipboard operation
node-rsa copied to clipboard

Cannot find signing scheme equivalent of "NONEwithRSA" in JAVA.

Open swarupkm opened this issue 2 years ago • 1 comments

Java security module has the below Signature algorithm support.

        String hash = "797c61b0a08a85da84ef59499fd26c3a44db9a718ba255423acae4407dc2948b";

        Signature sig = Signature.getInstance("NONEwithRSA");
        PrivateKey privateKey = getPrivateKey();
        sig.initSign(privateKey);
        sig.update(hash.getBytes());
        byte[] signedData = sig.sign();
        System.out.println(Base64.getEncoder().encodeToString(signedData));

Is there a way in Javascript to do its equivalent?

swarupkm avatar Nov 23 '21 18:11 swarupkm

Hi @swarupkm , Did you manage to find a fix or alternative to support for NONEwithRSA algorithm on Nodejs? Seems there is no an equivalent algorithm for NONEwithRSA in Nodejs

rkamaldev avatar Aug 11 '22 10:08 rkamaldev