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
0 answers

AES decryption in vb.net

I am using the below javascript code to encrypt the values. This is working fine. I would like to decrypt the values in vb.net code behind. Please help me to do this. var key = CryptoJS.enc.Utf8.parse('7061737323313233'); var iv =…
0
votes
1 answer

Progressive AES decryption with CryptoJS

I try to use progressive ciphering from CryptoJS to decrypt files. The files are encrypted & base64 encoded with OpenSSL as shown in the CryptoJS documentation (CryptoJS). When I use CryptoJS.AES.decrypt everything works fine: var encryptedText =…
0
votes
1 answer

Angular directive validation and decryption

I am trying to build a directive that first validates the users input. After the input is validated I want to hash the string with sha256 and return a new model that only contains the crypted input. I know its a strange feature but i have a customer…
user1973285
0
votes
0 answers

Different Outputs for AES Encryption using CryptoJS and AES Encryption in Java

I'm trying to encrypt data using AES encryption using cryptoJS. I want to transfer the encrypted data To / From the Device / Server. But i'm getting different AES encrypted outputs from device and server(Java). Following is my code: Mobile…
Jackie M
  • 1
  • 1
0
votes
1 answer

CryptoJS equivalent of PyCrypto

I'm trying to user CryptoJS under node to decrypt messages. I've got working Python code for decrypting the messages, but I need to run this under nodejs and would rather not call out to python for every message. from Crypto.Cipher import AES from…
0
votes
2 answers

Wait for FileReader slice blob entirely

I'm trying to read files data with FileReader API, and I read so many questions with this same problem and tried to implement their solutions, but for some bug in my code (maybe), it keep doing wrong result. To avoid crashing the browser when the…
0
votes
1 answer

Decryption is failing with cryptojs

I have this javascript. When I'm trying to decrypt it is not giving any output. Encrypt is working fine but not decrypt what wrong am I doing.
mnvbrtn
  • 558
  • 1
  • 8
  • 27
0
votes
2 answers

Need Encryption to store values in database

See here: https://code.google.com/p/crypto-js Which one of these encryption methods is best for storing encrypted values in a database? I need some method of encryption that lets the process convert the string back and forth in the same manner every…
Joshua Dannemann
  • 2,003
  • 1
  • 14
  • 34
0
votes
1 answer

Why would a hash computation using CryptoJS cause a $rootScope:infdig error in Angular?

I have a simple page that shows the hash of a string as someone types it into the page. I found that the page had a JavaScript error Error: [$rootScope:infdig]…
Willard
  • 337
  • 2
  • 8
0
votes
1 answer

AES encrypt with android from JavaScript code

I have to emulate and JavaScript code in Android to do an AES encrytion and decrytion, but my Android code isn't working as JavaScrip code. I have to do the same as this code in JavaScript:
0
votes
1 answer

Encryption in jsp and decryption in jQuery with AES

I want to encrypt in jsp and decrypt in jquery, i did below code in jsp String myKey = "dfslkskfs"; MessageDigest sha = null; key = myKey.getBytes("UTF-8"); sha = MessageDigest.getInstance("SHA-1"); key = sha.digest(key); key = Arrays.copyOf(key,…
Ravi Chothe
  • 180
  • 5
  • 17
0
votes
1 answer

C# equivalents for JavaScript Cryptography API functions

The new Cryptography API for Javascript has these functions: window.crypto.subtle.sign window.crypto.subtle.importKey Please what are their equivalents in C# Thanks. EDIT: I am asking for the c# equivalents of the JavaScript Cryptography functions…
Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157
0
votes
1 answer

Jquery error : too much recursion

I'm trying to create a file upload system implementing client side encryption using CryptoJS. The problem I'm having is that execution of the script is stopped by the following error in Firebug's console : too much recursion I have spent half of the…
Liam J
  • 163
  • 3
  • 12
0
votes
1 answer

How to implement CFB8 mode with Triple DES for decryption using CryptoJS

I have to decrypt the data which encrypted in java server. In java server encrypted text using triple des(mode:CFB8, padding:NoPadding) For decrypt, I tried encrypting such as java server Below is posted the java source code. private final static…
shen jing
  • 3
  • 4
0
votes
1 answer

How to get original string back in CryptoJS using TripleDES?

I'm trying to encrypt and decrypt in JavaScript using TripleDES.js. Here is my code snippet: Encryption Method: encrypt_string = function (plainData) { var encrypted = CryptoJS.TripleDES.encrypt(plainData, "My Secret Key"); alert("Encrypted:…
Gokul Nath KP
  • 15,485
  • 24
  • 88
  • 126
1 2 3
99
100