Topic: About SHA2 Library

Hi to All,

I'm a new user and I'm trying Ruby on Rails, with a simple sample for "Authentication", that require the [COLOR=blue]SHA2 library[COLOR].
How find this library and how can install this big_smile?

I hope in Your Help.

Best Regards.

Re: About SHA2 Library

hash = Digest::SHA256.hexdigest(password)

should work for ya
You'll need to
require 'digest/sha2'

if working outside of Rails, but in Rails no need.