![]() |
Delphi-Version: 2007
Reverse a hash function?
Does it possible to decrypt the hash from this function?
Delphi-Quellcode:
type TAdlerBytes = array[1..MAXINT] of Byte;
TAdlerArray = array[0..16] of Integer; PAdlerBytes = ^TAdlerBytes; implementation {$R *.dfm} function FNV32(PAB:PAdlerBytes;ACount:Integer):DWORD; var i,APrime:DWORD; begin APrime:= 16777619; Result:=2166136261; for i:=1 to ACount do begin Result:=Result*APrime; Result:=Result xor PAB^[i]; end; //FNV stands for Fowler-Noll-Vo. //Read up on FNV at http://www.isthe.com/chongo/tech/comp/fnv end; procedure TForm1.FormCreate(Sender: TObject); var i:dword; s:string; begin s:='aaabbbffggfd'; i:=fnv32(PAdlerBytes(s),length(s)); OutputDebugString(pchar(inttostr(i))); end; |
AW: Reverse a hash function?
Zitat:
greetz Mike |
AW: Reverse a hash function?
Not being reversible is the nature of a hash function
|
AW: Reverse a hash function?
hash = one-way encryption
This can not be reversed. [edit] Wo kommen denn "plötzlich" die vielen Antworten her? (grad eben waren die noch nicht da) |
AW: Reverse a hash function?
Hmm.. I think reversing the function is bad idea. I am on panic and I have wrong concept in my program. Sorry, I'm still learning. Thanks.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:16 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz