SCAR Code:program MD5_Authorization;
const
User = 'User';
Pass = 'Pass';
Hash1 = '8f9bfe9d1345237cb3b2b205864da075';
Hash2 = 'b9b57aae83585e17ede4570dcede353c';
begin
if MD5(User) = Hash1 then {Method is not secure...}
if MD5(Pass) = Hash2 then
WriteLn('Correct, welcome '+User+'!')
else
WriteLn('Password incorrect, '+User+'.')
else
WriteLn('Unknown user!');
end.
Thats how it might be used, but remember: you could just remove this auth part... Better use PHP, kiddies.





Reply With Quote
















