jeudi 1 octobre 2015

How to use the php SHA1 raw_output in Ruby?

I want to know how to convert this php function into Ruby on Rails :

<?php print_r(sha1($messageHash, true)); ?>

The output should be the same in both languages. I can use SHA1 encoding in ruby but don't know how to get the raw_output

Aucun commentaire:

Enregistrer un commentaire