Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


appal

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Tue May 29, 2007 11:15 am    Post subject: appal Reply with quote

I need help again =(.

Im trying to get the MD5 OR Sha1 of a file (Doesn't matter which one). Do you know how I can do this?

Google fails me again!
Back to top
View user's profile Send private message MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue May 29, 2007 12:01 pm    Post subject: Reply with quote

Wikipedia has psuedo-code for calculating the hash of a certain input.
Just convert to c and input a file.

http://en.wikipedia.org/wiki/MD5
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue May 29, 2007 12:11 pm    Post subject: Reply with quote

yeah but your own implementation will add considerable size to your application. Use the Windows CryptoAPI

edit: here is an example of this.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue May 29, 2007 1:18 pm    Post subject: Reply with quote

appalsap wrote:
yeah but your own implementation will add considerable size to your application. Use the Windows CryptoAPI

edit: here is an example of this.


It comes down to if you want customization and speed, or simplicity and reliability.

The API requires another dll to be loaded into your address space anyways.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue May 29, 2007 1:37 pm    Post subject: Reply with quote

Flyte wrote:
It comes down to if you want customization and speed, or simplicity and reliability.


wait what do you mean by "customization", how can you customize a hash? and why do you think one service would be faster than the other?

Flyte wrote:
The API requires another dll to be loaded into your address space anyways.


oh the horror and the humanity of it all
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Tue May 29, 2007 2:55 pm    Post subject: Reply with quote

Ok, thanks. Very Happy
Back to top
View user's profile Send private message MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue May 29, 2007 2:58 pm    Post subject: Reply with quote

appalsap wrote:
Flyte wrote:
It comes down to if you want customization and speed, or simplicity and reliability.


wait what do you mean by "customization", how can you customize a hash? and why do you think one service would be faster than the other?


1) If you wanted to you could make your own custom hash.
2) It can be faster because of code optimization.
3)
appalsap wrote:
1. It is windows-specific, which would break an otherwise portable program.


appalsap wrote:
Flyte wrote:
The API requires another dll to be loaded into your address space anyways.


oh the horror and the humanity of it all


One of the reasons why VB is so horrible. Wink
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue May 29, 2007 3:13 pm    Post subject: Reply with quote

Flyte wrote:
1) If you wanted to you could make your own custom hash.


Yeah everyone goes through that stage, but eventually you will realize that you won't be able to write a better hashing algorithm than the ones tested by years of scrutiny, scientific and peer review.

Flyte wrote:
2) It can be faster because of code optimization.


Because the average person can code better than the people at Microsoft.

Flyte wrote:
3) It is windows-specific, which would break an otherwise portable program.


Very good point, I agree, and it was terrible for me to assume that he was going to make a Windows program but 99% of the time that is the case.

Flyte wrote:
One of the reasons why VB is so horrible. Wink


You mean the runtime DLL? That's not standard. what cryptoAPI uses, advapi32.dll will probably be loaded in your application anyway, it has a lot of functions that aren't related to cryptography such as the registry API.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue May 29, 2007 3:27 pm    Post subject: Reply with quote

appalsap wrote:
Yeah everyone goes through that stage, but eventually you will realize that you won't be able to write a better hashing algorithm than the ones tested by years of scrutiny, scientific and peer review.


Good point, I agree with you there. Though writing your own is a good way to see how they work.

appalsap wrote:
Because the average person can code better than the people at Microsoft.


You know as well as I that they program for reliability and not speed. If it was speed, Windows would be in ASM.

appalsap wrote:

You mean the runtime DLL? That's not standard. what cryptoAPI uses, advapi32.dll will probably be loaded in your application anyway, it has a lot of functions that aren't related to cryptography such as the registry API.


I was under the assumption that it had its own separate dll. Sorry about that.
Back to top
View user's profile Send private message
Madman
I post too much
Reputation: 1

Joined: 04 May 2006
Posts: 3976

PostPosted: Tue May 29, 2007 3:37 pm    Post subject: Reply with quote

lol, /\ /\ /\

analytical post reviewing at it's finest.

_________________
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Tue May 29, 2007 4:59 pm    Post subject: Reply with quote

Ok, i've got it working now ^^. Stage 1 of my Anti-Cheat program is complete =D
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites