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

decrypt of ciphertext not working for strings #146

Open
GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments
Open

decrypt of ciphertext not working for strings #146

GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. See  http://jsfiddle.net/setj6r2y/

What is the expected output? What do you see instead?
Fails on 2nd decoding.


What version of the product are you using? On what operating system?
http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js

Please provide any additional information below.
http://jsfiddle.net/setj6r2y/

Original issue reported on code.google.com by randynwa...@gmail.com on 6 Jan 2015 at 7:00

@GoogleCodeExporter
Copy link
Author

Never mind.  Found problem.  Need to parse the string version first.

ciphertext = CryptoJS.enc.Hex.parse(String(encrypted.ciphertext))


Original comment by randynwa...@gmail.com on 6 Jan 2015 at 7:12

@GoogleCodeExporter
Copy link
Author

encrypted.ciphertext is never be as a object like string or whatever object. so 
no use of passing object to decrepit... please use 
CryptoJS.enc.Hex.parse(encrypted.ciphertext)

Original comment by g.selvag...@gmail.com on 13 May 2015 at 11:51

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