I want to convert a some code which is in Java to C#.
Java Code:
private static final byte[] SALT = \"NJui8*&N823bVvy03^4N\".getBytes(); public
The C# code you link to also uses salt - but the Java code does not. If you use salt with once, but not the other, then the results will be (and should be!) different.