in reply to updating passwords securely.

There is Digest::MD5 which will help you create a message digest.