ASCII SHA1 Hash Ruby -
i want generate ascii sha1 hash of string comprised of current time (to millisecond) , salt string (can anything)
does know how implement such thing?
require 'digest' salt="celtic sea" time_now = time.now digest::sha1.hexdigest("%.3f#{salt}" % time_now)
Comments
Post a Comment