Skip to content

After encryption CryptoJS returning script then encrypted text #149

Description

@GoogleCodeExporter
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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions