From: Ceri Storey Date: 2004-02-22T19:42:41+09:00 Subject: Re: Calculating a cryptographic MD5 hash On Sun, Feb 22, 2004 at 11:22:27AM +0900, Tim Bates wrote: > Hi folks, > I want to generate an MD5 hash of a password in the same format as is > written to /etc/shadow. As far as I can see, you have two options. You can either port re-write the algorithm (to be found here[0]) in ruby using Digest::MD5. Alternatively, you could create a small C wrapper around the existing implemenation. -- Ceri Storey