Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After encryption CryptoJS returning script then encrypted text #149

Open
GoogleCodeExporter opened this issue Aug 7, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 13 Jun 2015 at 7:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant