for 1.9, make sure 'gem install ruby-hmac'. require 'hmac-sha1'. key = '123456'. message = 'hello world'. hmac = HMAC::SHA1.new key. hmac.update message.
確定! 回上一頁