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

Decryption error #431

Open
s1lviu opened this issue Dec 3, 2021 · 1 comment
Open

Decryption error #431

s1lviu opened this issue Dec 3, 2021 · 1 comment

Comments

@s1lviu
Copy link

s1lviu commented Dec 3, 2021

Hello,

When our javascript back-end useRandomIVs is true, on our mobile app using latest PubNub Objective-c 4.17.0 with also useRandomInitializationVector true, we are receiving “Decrypt error”.

When we are setting useRandomInitializationVector on mobile to false (with no changed useRandomIVs on true), decryption works.

What can be the problem? Why is not successfully decrypting when useRandomInitializationVector is true on the mobile side?

Thanks,

MicrosoftTeams-image (5)

@parfeon
Copy link
Contributor

parfeon commented Dec 5, 2021

@s1lviu thank for reaching us.

What version of PubNub JS SDK has been used on server? Is it possible to see server instance configuration (with keys and cipher key hidden)?

Is it possible to check history in other channel? Usually this happens, when cryptor configuration has been changed after part of data has been published to channel. Maybe from the start messages has been published by JS SDK w/o random IV usage and only after that it has been enabled?

I've performed local tests and Objective-C doesn't have any troubles with retrieving history generated by PubNub JS SDK, where useRandomIVs is set to true.

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

2 participants