Closed kultz closed 7 years ago
I'm pretty sure that the md5 hash for test
is 098f6bcd4621d373cade4e832627b4f6
so you are probably doing something wrong in the console, it may be adding whitespace or something. The library is working perfectly fine!
Yeah, it looks like echo
adds a newline character at the end so it is actually test\n
, try the following command:
$ echo -n test | md5
@Positive07 Yes my bad! I found the problem right after i posted it in here:
I probably hashed "test\n" which is included line terminator. Right way is: echo -n "test" | md5
which is exactly 098f6bcd4621d373cade4e832627b4f6
or md5 -s test
Ok, closing this issue then 😊
Generating using terminal
When i try to implement it using this lib:
Result would be: 098f6bcd4621d373cade4e832627b4f6
Am i doing something wrong ?