Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / SHA Hash function - encryption help

Author
Message
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Apr 2009 22:36
Hello everyone!

I have been looking on TGC forums for a hash encryption algorithm, but was unsuccessful. Actually, I was unsuccessful even on google, but I found some pseudo code and wondered if anyone could help me turn this into DBC code. Here is the link:

http://en.wikipedia.org/wiki/SHA_hash_functions#SHA-1_pseudocode

Any help will be greatly appreciated.

TheComet

Peachy, and the Chaos of the Gems

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 5th Apr 2009 22:39
DBC doesn't have any bitwise operators, which would make implementing this algorithm very difficult.

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 5th Apr 2009 22:47
You could make a dll to do that for you in c++ then return what you need. although i'm not sure if thats possible since i'm not sure what a Bitwise operator is. lol


Of Course if you made a dll it would make more sense just to make the algorithm in the dll lol

New Site! Check it out \/
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Apr 2009 22:51
Quote: "DBC doesn't have any bitwise operators, which would make implementing this algorithm very difficult."


What about DBP?

Peachy, and the Chaos of the Gems

Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 5th Apr 2009 23:03
Found this. It's for DBP specificaly for encryption using bitwise operators. I'm looking thru it as well for personal interest.

That's what they WANT you to think...
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Apr 2009 23:06 Edited at: 5th Apr 2009 23:06
Cool, Quirkyjim! But I don't think that is HASH encryption, is it? But I will try and make some use of it.

TheComet

Peachy, and the Chaos of the Gems

Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 5th Apr 2009 23:10
It's the only I found on encryption. I know you can figure something out!

That's what they WANT you to think...
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 6th Apr 2009 00:30
Oh, just thought I'd remind you that SHA isn't an encryption algorithm, it's a hashing algorithm. You can't reverse the result of the hash.

Quote: "What about DBP?"

It's possible, although you still have to write your bit rotation routine.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Apr 2009 22:42
Quote: "You can't reverse the result of the hash."


That's exactly what I want. But I thought you can call it a "hash encryption", can't you?

TheComet

Peachy, and the Chaos of the Gems

Login to post a reply

Server time is: 2025-08-08 20:42:40
Your offset time is: 2025-08-08 20:42:40