flat assembler
Message board for the users of flat assembler.
Index
> Windows > Someone have a MD5 implementation on fasm? |
Author |
|
Piluex 26 Jan 2005, 01:14
Someone have a MD5 implementation on fasm?
|
|||
26 Jan 2005, 01:14 |
|
iklin 26 Jan 2005, 02:20
There is MD5 mplementation on masm and it is not so hard to convert it into fasm.
|
|||||||||||
26 Jan 2005, 02:20 |
|
Piluex 27 Jan 2005, 15:30
Thanks.
|
|||
27 Jan 2005, 15:30 |
|
Reverend 02 Feb 2005, 21:26
Here you have ready implementation made by a friend of mine. In fact he created MASM version (can't convince him to FASM ) and I adapted it to FASM.
|
|||||||||||
02 Feb 2005, 21:26 |
|
Madis731 27 Jan 2006, 23:10
You need to convert 16-byte binary to 32-byte ASCII:
Code: ;outStr - where to put the ASCII ; inStr - where to take the 16-byte binary Buf2Msg: mov ecx,16 mov edi,outStr .anotherchar: mov al,byte[inStr+ecx-1] mov ah,al and ax, 0FF0h shr al,4 cmp al,10 jc .num1 add al,7+20h ;Remove +20h to get uppercase .num1: add al,30h cmp ah,10 jc .num2 add ah,7+20h ;Remove +20h to get uppercase .num2: add ah,30h mov word[edi+ecx*2-2],ax loop .anotherchar ret |
|||
27 Jan 2006, 23:10 |
|
okasvi 28 Jan 2006, 03:54
thanks Madis731.
_________________ When We Ride On Our Enemies support reverse smileys |: |
|||
28 Jan 2006, 03:54 |
|
Crukko 10 Feb 2006, 05:58
Can someone explain me what MD5 is?
Thx |
|||
10 Feb 2006, 05:58 |
|
weiss 10 Feb 2006, 14:11
Its pretty obvious you're winding me up again!
|
|||
10 Feb 2006, 14:11 |
|
Reverend 10 Feb 2006, 17:06
Crukko: md5 is a hash algorithm. It means that it computes for your data of any size a special number which is characteristic. Even if you change a bit in the source data the result will be much different. And that's the most needed function. If you download a file and know original file's md5 checksum you can check if you downloaded the correct file because as I said even a bit wrongly downloaded (or changed during transmission or whatever) changed md5. Also it's nearly impossible (that's the assumption of all hash algorithms) to get original data from md5 checksum.
md5(data) = checksum - easy thing anti_md5(checksum) = data - impossible! |
|||
10 Feb 2006, 17:06 |
|
okasvi 10 Feb 2006, 17:47
but nowadays there is huuuge rainbow tables for "cracking" MD5... and collision(two different data produces same hash) are possible also...
http://en.wikipedia.org/wiki/MD5 _________________ When We Ride On Our Enemies support reverse smileys |: |
|||
10 Feb 2006, 17:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.