0

Is there a Ruby equivalent of PHP’s mcrypt_encrypt() function?

1 Answer 1

1

check the Crypt gem - http://crypt.rubyforge.org/index.html

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for answering! If I write the following code mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $raw, MCRYPT_MODE_CBC, $iv); How to write in ruby?
crypt.rubyforge.org/rijndael.html. CBC is the default (and only mode - crypt.rubyforge.org/cbc.html). Not sure about IV though, you might want to raise a question in the forum or tracker @ rubyforge.org/frs/?group_id=899

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.