bwrega / crypto-js

Automatically exported from code.google.com/p/crypto-js
0 stars 0 forks source link

After encryption CryptoJS returning script then encrypted text #149

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I have used below code for generation of encrypted text in PDF

var key = CryptoJS.enc.Latin1.parse('0123456789abcdef');            
var iv = CryptoJS.enc.Latin1.parse('fedcba9876543210');            
var message = field;
var padMsg = padString(message);            
var encrypted = CryptoJS.AES.encrypt(padMsg, key, {iv: iv, padding: 
CryptoJS.pad.NoPadding, mode: CryptoJS.mode.CBC});
app.alert(encrypted).

2. Issue with above code is; Its working properly with Adobe Reader(some 
version) and acrobat whereas with Adobe Reader DC and some other reader version 
its not working as expected, Its very inconsistent, this is returning [object 
Object].

3. I have tried other way to solve problem but its creating same issue.

What is the expected output? What do you see instead?
- Expected output is encrypted text whereas with returning [object Object] in 
Adobe Reader DC and some other reader version also, Its very inconsistent. 

What version of the product are you using? On what operating system?
- Latest version; Window 7 OS

Please provide any additional information below.

Original issue reported on code.google.com by arjunami...@gmail.com on 13 Jun 2015 at 7:01