Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-09

using crypt() in freepascal

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martyn Ranyard

No doubt some of you were expecting this email after the discussions on user detail, but...

I tried to compile an application that uses the crypt() function, and found h2pas/h2paspp doesn't like my header files so I manually created the attached crypt_h.pp.

It's called crypt_h because otherwise the unit name and the function are the same. Not good.

crypt_test.pp is just to test it, and is very basic, so please don't criticize it too much, thanks.

It compiled nicely on my Slackware 8 machine, and even encoded DES password hashes, as below :

String to encode : mranyard
Salt : mr
Encrypted : mrUQ7cwxVvScs

however, a second run attempting to create an MD5 password hash fails horribly and I have no ideas where to start :

String to encode : mranyard
Salt : $1$
Inconsistency detected by ld.so: dl-minimal.c: 114: realloc: Assertion `ptr == alloc_last_block' failed!

Any thoughts?

-
Martyn Ranyard
Free Software Advocate

jabber -
icq - 122500800
irc - Joran on oftc
msn -
e -

Martyn Ranyard
to Martyn Ranyard

Does noone have any idea why this isn't working?

Show quoted text 29 lines
No doubt some of you were expecting this email after the discussions on user detail, but... I tried to compile an application that uses the crypt() function, and found h2pas/h2paspp doesn't like my header files so I manually created the attached crypt_h.pp. It's called crypt_h because otherwise the unit name and the function are the same. Not good. crypt_test.pp is just to test it, and is very basic, so please don't criticize it too much, thanks. It compiled nicely on my Slackware 8 machine, and even encoded DES password hashes, as below : String to encode : mranyard Salt : mr Encrypted : mrUQ7cwxVvScs however, a second run attempting to create an MD5 password hash fails horribly and I have no ideas where to start : String to encode : mranyard Salt : $1$ Inconsistency detected by ld.so: dl-minimal.c: 114: realloc: Assertion `ptr == alloc_last_block' failed! Any thoughts?

-
Martyn Ranyard
Free Software Advocate

jabber -
icq - 122500800
irc - Joran on oftc
msn -
e -