vendor/bundle/ruby/2.1.0/gems/httpauth-0.2.1/lib/httpauth/digest.rb
def create_nonce(salt)
          now = Time.now
          time = now.strftime('%Y-%m-%d %H:%M:%S').to_s + ':' + now.usec.to_s
          Base64.encode64(
          digest_concat(
              time,
              digest_h(digest_concat(time, salt))
            )
          ).gsub("\n", '')[0..-3]
        end
# Create a nonce value of the time and a salt. The nonce is created in such a
# way that the issuer can check the age of the nonce.
#
# * <tt>salt</tt>: A reasonably long passphrase known only to the issuer.
Create a nonce value of the time and a salt. The nonce is created in such a
way that the issuer can check the age of the nonce.

salt: A reasonably long passphrase known only to the issuer.
Create a nonce value of the time and a salt . The nonce is created in such a way that the issuer can check the age of the nonce . salt : A reasonably long passphrase known only to the issuer .
def create_nonce(salt)
          now = Time.now
          time = now.strftime('%Y-%m-%d %H:%M:%S').to_s + ':' + now.usec.to_s
          Base64.encode64(
          digest_concat(
              time,
              digest_h(digest_concat(time, salt))
            )
          ).gsub("\n", '')[0..-3]
        end
def create_nonce ( salt ) now = Time . now time = now . strftime ( '%Y-%m-%d %H:%M:%S' ) . to_s + ':' + now . usec . to_s Base64 . encode64 ( digest_concat ( time , digest_h ( digest_concat ( time , salt ) ) ) ) . gsub ( "\n" , '' ) [ 0 .. - 3 ] end
Create a nonce value of the time and a salt.
Create a nonce value of the time and a salt .
salt