Md5 algorithms

hi

i’m the maintainer of a ruby yahoo chat program, and i’m trying to
implement the latest protocol changes by yahoo.

now it’s an MD5 hash for passwords etc, but i can’t seem to find a md5
module for ruby. i’ve searched on the net for ruby-md5 and also on the
RAA but it’s not listed anywhere.

has the package been made obsolete? superceded? is there a way i can get
MD5 hash’s?

regards
charles

Hi,

···

In message “md5 algorithms” on 03/01/04, charles blackburn Angel-Bunny@angelswithgoldenhearts.org writes:

has the package been made obsolete? superceded? is there a way i can get
MD5 hash’s?

No, now it’s bundled to the interpreter.

require ‘digest/md5’
hd = Digest::MD5.hexdigest(str)

						matz.

now it’s an MD5 hash for passwords etc, but i can’t seem to find a md5
module for ruby. i’ve searched on the net for ruby-md5 and also on the
RAA but it’s not listed anywhere.

MD5 implementation is part of standard library…

(1/wejn/wxx) ~$ irb
irb(main):001:0> require ‘digest/md5’
true
irb(main):002:0> Digest::MD5.hexdigest(“Some string”)
“80f855e731cc0c9aa336ca4d25f990be”

(1/wejn/wxx) ~$ echo -n ‘Some string’ | md5sum
80f855e731cc0c9aa336ca4d25f990be -

Hth,
W.

···


Wejn <lists+rubytalk(at)box.cz>
(svamberk.net’s Linux section, fi.muni.cz student, linuxfan)

    Bored?  Want hours of entertainment?         <<<
      Just set the initdefault to 6!             <<<

bloody 'ell that was quick :stuck_out_tongue:

thnx

···

On Fri, 2003-01-03 at 18:52, Yukihiro Matsumoto wrote:

Hi,

In message “md5 algorithms” > on 03/01/04, charles blackburn Angel-Bunny@angelswithgoldenhearts.org writes:

has the package been made obsolete? superceded? is there a way i can get
MD5 hash’s?

No, now it’s bundled to the interpreter.

require ‘digest/md5’
hd = Digest::MD5.hexdigest(str)

  					matz.

I meant to ask. is there a way to specify the salt ??

charles

···

On Fri, 2003-01-03 at 18:52, Yukihiro Matsumoto wrote:

Hi,

In message “md5 algorithms” > on 03/01/04, charles blackburn Angel-Bunny@angelswithgoldenhearts.org writes:

has the package been made obsolete? superceded? is there a way i can get
MD5 hash’s?

No, now it’s bundled to the interpreter.

require ‘digest/md5’
hd = Digest::MD5.hexdigest(str)

  					matz.

Hi,

···

In message “Re: md5 algorithms” on 03/01/04, Charles Blackburn charlesb@summerfield-technology.co.uk writes:

I meant to ask. is there a way to specify the salt ??

What do you mean by “salt”. As far as I know, there’s no salt in MD5
algorithm.

						matz.

I suppose you’re rferring to the ~md5 format of BSD
(imported in other system) passwd files.

That’s not the real MD5, but something alike.

Probably they’re just adding a salt string to the password,
maybe simply concatenating them, dunno .

Maybe we could have such a thing in some external module, maybe
Ruby::Auth ,

PS
I seem to remember that this is called MD5-crypt instead of MD5, but
maybe I just have to sleep a little

···

On Sat, 4 Jan 2003 03:56:20 +0900, Charles Blackburn charlesb@summerfield-technology.co.uk wrote:

I meant to ask. is there a way to specify the salt ??

Look at
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/lib/libcrypt/crypt-md5.c?rev=1.12&content-type=text/plain

···

On Sat, Jan 04, 2003 at 01:15:18PM +0900, gabriele renzi wrote:

I meant to ask. is there a way to specify the salt ??
I suppose you’re rferring to the ~md5 format of BSD
(imported in other system) passwd files.
That’s not the real MD5, but something alike.
Probably they’re just adding a salt string to the password,
maybe simply concatenating them, dunno .


Dalibor Sramek insula.cz | In the eyes of cats,
dalibor.sramek@insula.cz | all things belong to cats.

thanks , interesting to see I was not so far from the truth :slight_smile:

···

On Sun, 5 Jan 2003 02:52:45 +0900, Dalibor Sramek dali@insula.cz wrote:

On Sat, Jan 04, 2003 at 01:15:18PM +0900, gabriele renzi wrote:

I meant to ask. is there a way to specify the salt ??
I suppose you’re rferring to the ~md5 format of BSD
(imported in other system) passwd files.
That’s not the real MD5, but something alike.
Probably they’re just adding a salt string to the password,
maybe simply concatenating them, dunno .

Look at
[base] Log of /head/lib/libcrypt/crypt-md5.c