Author Topic: MD5String  (Read 777 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
MD5String
« on: April 20, 2008, 12:49:32 pm »
I've been trying to use the MD5String function for passwords, when I noticed that it doesn't work 100% of the time.

http://nopaste.org/p/a6HOpuKTi

Code: [Select]
procedure ActivateServer();
var
  i: byte;
begin
  for i := 0 to 99 do begin
    Sleep(10);
    WriteLn(MD5String(''));
  end;
end;

Also, Shutdown on ActivateServer seems to crash the server.

I did a few more test just in case:
MD5: 'test' http://nopaste.org/p/aimlp9yCe
'ABCabc' http://nopaste.org/p/a2LxvS3mY

When I try to do it on my script, symbols appear more often than the examples from these scripts.


Question: Should core bugs be reported on the forums or bugs.soldat.pl?

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: MD5String
« Reply #1 on: April 20, 2008, 12:56:01 pm »
well, it does add the 0 sometimes, i just copy the first 32 characters from that string and always use that =F

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: MD5String
« Reply #2 on: April 20, 2008, 01:04:15 pm »
I would do that, but the weird symbols appear much more often in the actual project that I'm working on, so that wouldn't help in those cases.