NOOOOO..... I did a mistake!!!!
There is a hidden bug in all this... Somehow even when I use a text editor, I did the SAME MISTAKE!!!
Because it uses SALT as a text (not as hex), everything after the double dot : and before new line is SALT!!!! This means, a hidden SPACE was in the salt all the time! Even when I edit the file!
So, it not worked because this line. I did it to make the code cleaner:
I just need to do this, just it:
Because I aways used salt in hex, this isn't a problem, but this case the salt is a text. In linux, it worked because echo don't append space!
This is a lesson when working with text salt!!! Don't be stupid like me!
There is a hidden bug in all this... Somehow even when I use a text editor, I did the SAME MISTAKE!!!
Because it uses SALT as a text (not as hex), everything after the double dot : and before new line is SALT!!!! This means, a hidden SPACE was in the salt all the time! Even when I edit the file!
So, it not worked because this line. I did it to make the code cleaner:
Code:
echo c57f6ac1b71f45a07dbd91a59fa47c23abcd87c2:631225 > hash.txt
The space ---^
I just need to do this, just it:
Code:
echo c57f6ac1b71f45a07dbd91a59fa47c23abcd87c2:631225> hash.txt
Because I aways used salt in hex, this isn't a problem, but this case the salt is a text. In linux, it worked because echo don't append space!
This is a lesson when working with text salt!!! Don't be stupid like me!