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

plz help decrypt failed #68

Open
fukemy opened this issue May 26, 2022 · 2 comments
Open

plz help decrypt failed #68

fukemy opened this issue May 26, 2022 · 2 comments

Comments

@fukemy
Copy link

fukemy commented May 26, 2022

can u help, i dont know why failed:

message:

nVyCnCGpIxSE7Mpbfuj4Cdx4YRkkssxiZ1kZxVNuOMtBpd+CmzYGcDoZyWUwL41yWWONDVxewotexteCgXqhH7WV+ObGw0QADmjgygHd0C4kCCmQgNPjxWwb2q7FdzGwOCMkRoQByQyEXN3L176nlSNmT4GW9GAd3hf/JLFtlf0=', 'UjUzb3NKdmczeW9JVEM1NzYwc1hhU09wVlpzeXg2UEFnOFpNVytwZThoaz0=

key:

UjUzb3NKdmczeW9JVEM1NzYwc1hhU09wVlpzeXg2UEFnOFpNVytwZThoaz0=

iv:

UjUzb3NKdmczeW9J
@plafferty64830
Copy link

can u help, i dont know why failed:

message:

nVyCnCGpIxSE7Mpbfuj4Cdx4YRkkssxiZ1kZxVNuOMtBpd+CmzYGcDoZyWUwL41yWWONDVxewotexteCgXqhH7WV+ObGw0QADmjgygHd0C4kCCmQgNPjxWwb2q7FdzGwOCMkRoQByQyEXN3L176nlSNmT4GW9GAd3hf/JLFtlf0=', 'UjUzb3NKdmczeW9JVEM1NzYwc1hhU09wVlpzeXg2UEFnOFpNVytwZThoaz0=

key:

UjUzb3NKdmczeW9JVEM1NzYwc1hhU09wVlpzeXg2UEFnOFpNVytwZThoaz0=

iv:

UjUzb3NKdmczeW9J

@fukemy I was facing this issue as well and I've just fixed it.
Aes.decrypt is a promise and should be executed as follows:

Aes.decrypt(encryptedData.cipher, key, encryptedData.iv, 'aes-256-cbc').then((text) => { //do something with your decrypted text... const decrypted = text; });

@gasparnd
Copy link

can u help, i dont know why failed:

message:

nVyCnCGpIxSE7Mpbfuj4Cdx4YRkkssxiZ1kZxVNuOMtBpd+CmzYGcDoZyWUwL41yWWONDVxewotexteCgXqhH7WV+ObGw0QADmjgygHd0C4kCCmQgNPjxWwb2q7FdzGwOCMkRoQByQyEXN3L176nlSNmT4GW9GAd3hf/JLFtlf0=', 'UjUzb3NKdmczeW9JVEM1NzYwc1hhU09wVlpzeXg2UEFnOFpNVytwZThoaz0=

key:

UjUzb3NKdmczeW9JVEM1NzYwc1hhU09wVlpzeXg2UEFnOFpNVytwZThoaz0=

iv:

UjUzb3NKdmczeW9J

Could do you send your implementation of the decrypt method?

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

No branches or pull requests

3 participants