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

C# code and Objective C code gives two different set of results #42

Open
swa6589 opened this issue Mar 22, 2016 · 2 comments
Open

C# code and Objective C code gives two different set of results #42

swa6589 opened this issue Mar 22, 2016 · 2 comments

Comments

@swa6589
Copy link

swa6589 commented Mar 22, 2016

We have followed exactly the same approach given here for IOS and C#. But unfortunately we are getting two different results.

We hardcoded IV key and Secret key and tested. Even this scenario into different results.

Let us know that any one has resolved this issue.

Any help is appreciated.

Thanks in advance

@katpurz
Copy link

katpurz commented May 21, 2016

I'm seeing the same thing. I have my Android and iOS apps producing the same encrypted result (they both use the same IV) but I can't get the windows side to produce the same result... have you found a fix for this, per chance?

@katpurz
Copy link

katpurz commented May 21, 2016

Update: I solved my problem... the "how to use" code for CS showed this line wrong. once I corrected to 32, I now get the same results from C#/iOS/Android:

string key = CryptLib.getHashSha256("1111111111111111", 32); //32 bytes = 256 bits

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