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

Unrecognised version number: 65 #10

Closed
ramziShadid opened this issue Apr 16, 2014 · 8 comments
Closed

Unrecognised version number: 65 #10

ramziShadid opened this issue Apr 16, 2014 · 8 comments
Labels

Comments

@ramziShadid
Copy link

i'm developing an application for android and iOS which communicate with PHP server, i am using RNCryptor to encrypt the data between them.

For both iOS , PHP encryption/decryption are working fine but in android the decryption are not working and giving me org.cryptonode.jncryptor.CryptorException: Unrecognised version number:65.

After tracing your code in Android you are supporting 2 versions of codes "2","3" and my encryption from the server "PHP" is returing 65

So do you have any idea what i'm doing wrong ?

@dmjones
Copy link
Contributor

dmjones commented Apr 16, 2014

Can you provide a test vector for me? I'd like to see:

  • Password
  • Input data (plaintext)
  • Output from PHP

@ramziShadid
Copy link
Author

you can download them from this link :
http://www.4shared.com/zip/yzh8znNpba/RNCryptor_JNCryptor.html

@dmjones
Copy link
Contributor

dmjones commented Apr 29, 2014

Please post the vectors as a comment in this issue. I don't want to log into a file sharing site to access a ZIP.

@tdegrunt
Copy link

tdegrunt commented Jun 6, 2014

A (not so wild) guess here, but likely one side is using base64 to encode the output, the other isn't decoding it.

@dmjones
Copy link
Contributor

dmjones commented Aug 2, 2014

@ramziShadid: Is this issue still a problem for you? If so, please post test vectors as a comment.

@dmjones
Copy link
Contributor

dmjones commented Sep 20, 2014

Closing due to lack of response. Please comment here again if you want this investigated.

@dmjones dmjones closed this as completed Sep 20, 2014
@vados60
Copy link

vados60 commented Jul 31, 2015

have the same issue(

String to decode: "AwGBfFE6+BAQXP6iS/76r8eyzMlCUrIpGIiCJ1txpMw11hk32ObOniqi41T7BoG7dtXTecn4kOEh8NQQP MUxYzuwCb9kjaDyLcfDcWGh5JxTkA=="

key: "vRmfE690PF8u0123e24W7OdhF37g5e8g"

@FoneG
Copy link

FoneG commented Jun 14, 2023

A (not so wild) guess here, but likely one side is using base64 to encode the output, the other isn't decoding it.

Your guess is correct that decoding money needs to do base64 processing first

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

No branches or pull requests

5 participants