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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -