Questions tagged [jsencrypt]

36 questions
0
votes
1 answer

JSEncrypt Error [Uncaught ReferenceError: ASN1 is not defined] using JavaScript Interpreter

I wondered if you can help with an issue when using this library in the Runscope JavaScript interpreter(V8-compatible (version 3.28), sandboxed JavaScript interpreter). I think it's happening because the JSEncrypt code is expecting a…
user45097
  • 177
  • 1
  • 3
  • 12
0
votes
1 answer

How to generate random keys in C# and use them in JSEncrypt

I have to do data encryption on client side using public key and decryption on server side using private key in an asymmetric way, but I was unable to get which way to generate keys in C# and use them in JSEncrypt. Any another algorithms is the for…
venkatesh
  • 9
  • 1
0
votes
1 answer

JSEncrypt RSA 2048 Encryption Output Size

My understanding is that the output size of RSA 2048 bit encryption is 256 bytes. However, when testing this with jsencrypt its outputting 344 characters every time. Can someone help me understand why this is the case? Online jsencrypt tool…
Scoota P
  • 2,573
  • 7
  • 27
  • 45
0
votes
1 answer

JSEncrypt to PyCrypto RSA encryption not possible

I'm trying to encrypt a string in Javascript using RSA (public key) And I want to decrypt that string in Python (2.7) with my private key. The Libraries I am using are JSEncrypt and PyCrypto The Problem here is, that PyCrypto has problems to decrypt…
DarthVader
  • 192
  • 2
  • 13
0
votes
4 answers

Not able to encrypt a string with a public key in Protractor

I am trying call the encrypt function mentioned below: var encryptor = require("./jsencrypt.js"); this.encrypt = function () { var key="LxVtiqZV6g2D493gDBfG0BfV6sAhteG6hOCAu48qO00Z99OpiaIG5vZxVtiqZV8C7bpwIDAQAB"; encryptor = new JSEncrypt(); …
Praveen
  • 1,218
  • 1
  • 14
  • 25
-1
votes
1 answer

How to Make jse file to execute encoded .exe & add startup silently? Javascript to add file to startup?

I am making a JSE file , which will decode the Base64 Encoded .exe file , save it to the tmp folder and execute it. But i need to add the .exe file to startup & run everytime the system restarts. I am a beginner in coding , just made this program…
Krishna
  • 1
  • 1
1 2
3