This is the algorithm for signing the data in C# using a private key from a certificate that is used from both me and the client in order to define an unique key to identify the user: I then pass the private key to my Javascript using Bouncy Castle: This one is the algorithm used in Javascript: The signatures returned
Tag: cryptography
Chaum blind signature with blinding in JavaScript and verifying in Java
I’m experimenting with Chaum’s blind signature, and what I’m trying to do is have the blinding and un-blinding done in JavaScript, and signing and verifying in Java (with bouncy castle). For the Java side, my source is this, and for JavaScript, I found blind-signatures. I’ve created two small codes to play with, for the Java side: The above will generate
Is there a behavioral equivalent to the AES256TextEncryptor Class of the Jasypt-Library in CryptoJS?
As a newbie to Cryptography, I’m trying to reproduce the same default behavior of the AES256TextEncryptor Class of the jasypt-library with the CrpytoJS library. This is my Java method, that basically takes in two arguments – the message that I want to encrypt as well as my secret paraphrase: When encrypting the messageToBeEncrypted with this code, the resulting encrypted message
RSA-SHA1 signature differs in JavaScript and PHP
I need to create a RSA-SHA1 signature in nodeJS, I am using the following code I’m double checked that my code result is true, I have same result with online tools if I select sha1WithRSA algorithm and I also get same result in PHP when I use openssl_sign function I need to sign data for a bank API, Unfortunately they
Different results trying to port SHA-1 digest from Python to browser JavaScript
Main question I have the following short piece of legacy code that I am trying to port from Python (with just standard lib) to JavaScript – from the name of the methods I assume it creates a SHA-1 digest of the abc string I searched for how to do that in the browser in JS and found the following code
Unable to verify RSA-PSS signature in Node.js
I have a client in JavaScript and a server in Node.JS. I’m trying to sign a simple text in client and send the signature along with publicKey to the server then server can verify the publicKey. Anything in client-side is OK! but I’m unable to verify the signature in server-side. I think there is no need for you to read
Why I can’t use RSASSA-PKCS1-v1_5 to encrypt/decrypt?
First of all, I’m completely new to cryptography and I just have basic knowledge about some encryption algorithms and how they work such as RSA, DES and so on. I want to use SubtleCrypto in JS to do some stuff including signing, verifying, encrypting, decrypting using RSA. I’m just unable to produce a key pair for doing all of them;
Using javascript `crypto.subtle` in synchronous function
In javascript, is it possible to use the browser built-in sha256 hash (https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest#Converting_a_digest_to_a_hex_string) inside a synchronous function? Ideally, I’d like to do something like I already tried things like (async() => {hash = await digestMessage(message); return hash})(), but I can only get back the promise object. It seems to me that it might not be possible to achieve what I
Encrypt HTML Source code with JAVASCRIPT. How does it work?
i was checking if it is possible to actually encrypt html code or not. I found a place where they encrypt the HTML code in Javascript. I wonder how does it work or in what format can anyone please tell me ?? Actual code The encrypted HTML CODE You can try running in their file. It works with out any
Use window.crypto in nodejs code
I am trying to use the window.crypto.getRandomValues method in a nodejs script. From my understanding there is no window element when I run a simple code like this in node: Which is why I get this error: How can I use this method in my code? Thanks Answer You can use the built-in crypto module instead. It provides both a