c# encoding to PHP encoding -
i have asp project in encoding algorithm used save password. have convert c# code php code compare password table value in sql database.
code used in c# encoding
md5cryptoserviceprovider md5hasher = new md5cryptoserviceprovider(); byte[] hasheddatabytes; utf8encoding encoder = new utf8encoding(); hasheddatabytes = md5hasher.computehash(encoder.getbytes(password));
now while registration, entered password '123456', , when checked table customers , password saved 0xe10adc3949ba59abbe56e057f20f883e00000000000000000000000000000000000000000000000000000000000000000000
and column structure in table password (binary(50),null).
can 1 please tell me code should use in php compare '123456' 0xe10adc3949ba59abbe56e057f20f883e00000000000000000000000000000000000000000000000000000000000000000000
you have check method computehash in class md5cryptoserviceprovider , write similiar class/method in php bit of code, nobody can you!
Comments
Post a Comment