carlo bation wrote in post #994454:
> $_SESSION["userpwd"] = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256,
> md5($cryptokey), $_POST['password'], MCRYPT_MODE_CBC,
> md5(md5($cryptokey))));;

Maybe this article will help:

http://blog.rapleaf.com/dev/2009/02/19/ruby-and-mcrypt/

As it says at the top of the article there is usually little reason to 
need mcrypt with Ruby. Instead Ruby contains an OpenSSL implementation 
that should provided all the crypto functions without the need for 
additional crypto libraries.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to