flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > MD5 (Need help topic).

Author
Thread Post new topic Reply to topic
CFJ0



Joined: 06 Jun 2007
Posts: 9
CFJ0 09 Jun 2007, 10:40
Well, I have decided to start FASM and so far I have been able to make a few programs to make Messagebox's and such.
I am wondering if anyone got a macro to encrypt text with the md5 algorithm :S
This is a Win32 app Smile

Like:
Code:
call MD5 "hello"    

And it would return the md5 value of "hello".

Thanks for reading Smile

//CFJ0
Post 09 Jun 2007, 10:40
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 09 Jun 2007, 23:39
you are searching for procedure not macro
Post 09 Jun 2007, 23:39
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 10 Jun 2007, 00:33
Or really a macro and "call" is a typo error.

CFJ0, by "encrypt" you mean calculate MD5 hash?

For assembly-time strings you can use a macro but for run-time strings you need to write a procedure as vid pointed out.
Post 10 Jun 2007, 00:33
View user's profile Send private message Reply with quote
CFJ0



Joined: 06 Jun 2007
Posts: 9
CFJ0 10 Jun 2007, 12:30
Yea calculate md5 hash :S
Post 10 Jun 2007, 12:30
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20519
Location: In your JS exploiting you and your system
revolution 10 Jun 2007, 22:58
You might be interested in SHA512 macros for fasm. SHA512 is more secure than the broken MD5.
Post 10 Jun 2007, 22:58
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 10 Jun 2007, 23:13
Quote:

the broken MD5


Do you have any link? (excluding rainbow tables).
Post 10 Jun 2007, 23:13
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 10 Jun 2007, 23:55
Loco: Google for "Vlastimil Klima". Yes, MD5 is broken.
Post 10 Jun 2007, 23:55
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 11 Jun 2007, 00:24
Googled it. I have to finish a project before the deadline (2 hours) so I'll take a deep look into it tomorrow Razz

Thanks vid
Post 11 Jun 2007, 00:24
View user's profile Send private message Reply with quote
SomeoneNew



Joined: 12 Aug 2006
Posts: 54
SomeoneNew 24 Dec 2007, 04:35
It's not broken ffs, just add salt & pepper to the hash and they wont guess it even by force in an year unless you're talking about the US gov. It would be easier to just disassemble de hasher or get the source by hacking force than trying to bruteforce a salted hash ffs.
Post 24 Dec 2007, 04:35
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20519
Location: In your JS exploiting you and your system
revolution 24 Dec 2007, 04:56
SomeoneNew wrote:
It's not broken ffs, just add salt & pepper to the hash and they wont guess it even by force in an year unless you're talking about the US gov. It would be easier to just disassemble de hasher or get the source by hacking force than trying to bruteforce a salted hash ffs.
Such bad advice should at least have a smiley to show you are only joking.
Post 24 Dec 2007, 04:56
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.