C# Little-Endian Convert From Java Big-Endian -



C# Little-Endian Convert From Java Big-Endian -

this code produces 32 length utf-16 string, ported java. problem is, output different there here.

i think problem lies fact java handles utf-16 big-endian , c# little-endian.

firstly string encrypted using bouncy castle pkcs5s2, go on set in string using password_hash method.

so question is, how can create loop run using big-endian, produce same string in java.

the place see in code text encoding matters statement:

encoding.utf8.getbytes(user_salt);

and uses utf-8, not utf-16.

you can utilize encoding.bigendianunicode instead of encoding.utf8 if want big-endian utf-16.

java c# big-endian

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -