Questions tagged [jsencrypt]

45 questions
0
votes
0 answers

Why JSEncrypt encrypt password is different each time?

I find that JSEncrypt encrypt.encrypt(password) with the same publicKey is different each time, such…
Holinc
  • 641
  • 6
  • 17
0
votes
1 answer

export 'JSEncrypt' was not found in 'jsencrypt' in Angular

I'm using Angular 9 App. installed jsencrypt using npm npm install jsencrypt And using this in one of my helper classes as below: import { JSEncrypt } from 'jsencrypt'; en: any; export class AuthHelperService { constructor(private http:…
Unknown Coder
  • 1,510
  • 2
  • 28
  • 56
0
votes
2 answers

Decrypting RSA with JavaScript

I am writing a web app which receives an RSA encrypted response from a server. It needs to decrypt this file. So far, I have tried to use JSEncrypt to decrypt the file on the frontend. The issue seems to be that the backend is not encrypting the…
Toffee
  • 75
  • 10
0
votes
0 answers

JSEncrypt can sign and verify but PHP openssl_verify fails

JSEncrypt can sign and verify but PHP openssl_verify fails Using JSEncrypt to sign/verify a message works fine. However when I send the data to a PHP server for verification using openssl_verify it returns: error:0906D06C:PEM…
Joaquin
  • 79
  • 1
  • 4
0
votes
0 answers

An alternative to jsencrypt encryption with public key

I am currently using jsencrypt to encrypt text using a public key. This is what I have. file.jsx import JsEncrypt from 'jsencrypt'; const textEncrypt = 'sensitive data'; const encrypt = new JsEncrypt.JSEncrypt(); encrypt.setPublicKey(key); const…
Angelina
  • 2,175
  • 10
  • 42
  • 82
0
votes
0 answers

when use jsencrypt.min.js encrypt and java decrypt throws exception

when use jsencrypt.min.js encrypt and java decrypt throws exception strp1: backend private_key…
MrRiver
  • 16
  • 2
0
votes
1 answer

How can I encrypt data with my private key and decrypt with my public key using JSEncrypt?

For a homework assignement I need to encrypt data with a private key and decrypt it with a public key. I am using JSEncrypt and it is encrypting my data, but when I try do decrypt it, it is returning false. It is an assignement about digital…
0
votes
0 answers

Encrypt and Decrypt text with RSA in javascript

I want to encrypt text with RSA using Public.pem and private.pem I generated these files with openssl openssl genrsa -out private.pem 2048 openssl rsa -pubout -in private.pem -out public.pem I need to encrypt the text in javascript (I use this…
0
votes
1 answer

JSEncrypt to PHP Asymmetric Encryption

I am trying to do an Asymmetric encryption from client to server with the client having the public key and the server the private. On the client side I am using JSEncrypt in javascript to encrypt using my public key. From there I use AJAX to send…
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
  • 561
  • 2
  • 7
  • 16
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,622
  • 7
  • 29
  • 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
  • 4
  • 16
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,378
  • 2
  • 15
  • 26
-2
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