Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swarupkm opened this issue Nov 23, 2021 · 1 comment
Open

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

swarupkm opened this issue Nov 23, 2021 · 1 comment

Comments

@swarupkm
Copy link

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?

@rkamaldev
Copy link

rkamaldev commented Aug 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants