How can I generate MD5 hash of a String in JRuby?
MD5 hash
String
JRuby
String = 'device S6'
This is a quick jirb session:
>> require 'digest/md5' => true >> md5 = Digest::MD5.new => #<Digest::MD5: d41d8cd98f00b204e9800998ecf8427e> >> md5.hexdigest 'device S6' => "0bdf995668120bcb78bfb125995d54e1"
This should get you going...
This is a quick jirb session:
This should get you going...