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
Post a Comment