Questions tagged [cryptojs]

CryptoJS is a growing collection of standard and secure cryptographic algorithms implemented in JavaScript using best practices and patterns. They are fast, and they have a consistent and simple interface.

CryptoJS is a growing collection of standard and secure cryptographic algorithms implemented in JavaScript using best practices and patterns. They are fast, and they have a consistent and simple interface.


Resources :

1614 questions
0
votes
1 answer

Decrypt message with encrypted salt string and secret passphrase using CryptoJS

I want decode an encrypted string using cryptoJS. I get how to decode the encrypted object but couldnt understand how to decrypt the string. Heres what I tried: var enc = CryptoJS.AES.encrypt('hellloooo',…
Daniel Kobe
  • 9,376
  • 15
  • 62
  • 109
0
votes
1 answer

Porting AES decryption from CryptoJS to PyCrypto

Here is a JavaScript part which decodes a string with AES encryption var p = 'some large string' var s = 'Q05WTmhPSjlXM1BmeFd0UEtiOGg=' var y = CryptoJS.AES.decrypt({ ciphertext: CryptoJS.enc.Base64.parse(p) }, CryptoJS.enc.Base64.parse(s), { …
Abul Hasnat
  • 1,541
  • 2
  • 16
  • 23
0
votes
3 answers

Can I include CryptoJS files in my Chrome extension?

I'm working on a Chrome extension and it's almost done. It uses CryptoJS, though, and I was wondering if it's okay to have those files (eg sha1.js) inside the extension package when I publish it (I downloaded CryptoJS and copied the SHA script file…
0
votes
0 answers

CryptoJs aes impacting cordova applications with Cordova-Plugin_camera

I have been struggling for figuring out the reason for failure of Cordova-plugin-camera for the last 45 days. This really bugged me like hell and consumed more than required time for this. I have nailed it now. I was using cyrptojs aes to encrypt…
0
votes
1 answer

CryptoJS AES encryption output not matching

I am having issue with CryptoJS. I tried to encrypt the a string but it is giving the different output. String: "test message" Key: "123456" This is the testing code I tried to run
Ralph
  • 2,065
  • 3
  • 15
  • 23
0
votes
1 answer

Converting a 64 bit number string to word array using CryptoJS

I want to know if a string with integer data can be converted to a CryptoJS word array correctly? Example. Can I convert "175950736337895418" into a word array the same way I can create a word array out of 175950736337895418 (int value). I have…
grane2212
  • 764
  • 1
  • 10
  • 29
0
votes
2 answers

mcrypt_encrypt in CFB mode function in CryptoJS

I'm trying to convert an mcrypt_encrypt function written in php to node.js, I am using CryptoJS in node.js and tried all kinds of config options and I am not having any luck figuring this thing out. PHP…
Prashanth Kumar B
  • 566
  • 10
  • 25
0
votes
1 answer

bower with cryptojslib automatically adds many var hash = CryptoJS.HmacSHA512('1111111', 'stub11111'); CryptoJS v3.1.2 code.google.com/p/crypto-js But why hash is undefined?

Arthur Kharkivskiy
  • 540
  • 1
  • 7
  • 16
0
votes
1 answer

Encryption decryption with AES Crypto-JS does not work in an android webview?

In a webview in my android app, I am trying to do encryption and decryption with Crypto-JS. Encryption is working fine but decryption does not work. I searched a lot and none of the solution i found worked for me. I am new with javascript. In my…
Piscean
  • 3,069
  • 12
  • 47
  • 96
0
votes
0 answers

Converting a cryptojs MD5 script into PHP

I've got a piece of javascript which someone has written to convert an ID into a particular hashed ID used by a program. Note that the javascript output cannot be changed. It replicates the hashing done by the above mentioned 3rd-party program. I am…
Kieran
  • 752
  • 1
  • 10
  • 24
0
votes
1 answer

Node CryptoJS vs Jsrsasign SHA256withRSA with encrypted pem

So I am running into an issue using jsrsasign. I am not quite what I am doing wrong. I am attempting to emulate a hash process we are uinsg in NodeJS using angular and it is not clear what the issue is. Here is the process in we have in NodeJS that…
user2932053
0
votes
3 answers

json_decode returns NULL after the json string was decrypted with mcrypt_decrypt (aes)

I want to send the "message" to php as json data. But The "message" has to be a String. If I "stringfy" my json data in Javascript and encrypt them with "CryptoJS.AES.encrypt", I cannot get the single contents in PHP because "json_decode" always…
1 2 3
99
100