lib/gibberish/digest.rb in gibberish-1.4.0 vs lib/gibberish/digest.rb in gibberish-2.0.0

- old
+ new

@@ -32,13 +32,12 @@ # Returns the SHA1 digest for the data # # Shorcut alias: Gibberish::SHA1(data) # - # @param [String] key # @param [#to_s] data - # @param [Hash] options + # @param [Hash] opts # @option opts [Boolean] :binary (false) encode the data in binary, not Base64 def self.sha1(data, opts={}) data = data.to_s if opts[:binary] OpenSSL::Digest::SHA1.digest(data) @@ -49,13 +48,12 @@ # Returns the SHA224 digest for the data # # Shorcut alias: Gibberish::SHA224(data) # - # @param [String] key # @param [#to_s] data - # @param [Hash] options + # @param [Hash] opts # @option opts [Boolean] :binary (false) encode the data in binary, not Base64 def self.sha224(data, opts={}) data = data.to_s if opts[:binary] OpenSSL::Digest::SHA224.digest(data) @@ -66,13 +64,12 @@ # Returns the SHA256 digest for the data # # Shorcut alias: Gibberish::SHA256(data) # - # @param [String] key # @param [#to_s] data - # @param [Hash] options + # @param [Hash] opts # @option opts [Boolean] :binary (false) encode the data in binary, not Base64 def self.sha256(data, opts={}) data = data.to_s if opts[:binary] OpenSSL::Digest::SHA256.digest(data) @@ -83,13 +80,12 @@ # Returns the SHA384 digest for the data # # Shorcut alias: Gibberish::SHA384(data) # - # @param [String] key # @param [#to_s] data - # @param [Hash] options + # @param [Hash] opts # @option opts [Boolean] :binary (false) encode the data in binary, not Base64 def self.sha384(data, opts={}) data = data.to_s if opts[:binary] OpenSSL::Digest::SHA384.digest(data) @@ -100,13 +96,12 @@ # Returns the SHA512 digest for the data # # Shorcut alias: Gibberish::SHA512(data) # - # @param [String] key # @param [#to_s] data - # @param [Hash] options + # @param [Hash] opts # @option opts [Boolean] :binary (false) encode the data in binary, not Base64 def self.sha512(data, opts={}) data = data.to_s if opts[:binary] OpenSSL::Digest::SHA512.digest(data) @@ -117,12 +112,11 @@ # Returns the MD5 digest for the data # # Shorcut alias: Gibberish::MD5(data) # - # @param [String] key # @param [#to_s] data - # @param [Hash] options + # @param [Hash] opts # @option opts [Boolean] :binary (false) encode the data in binary, not Base64 def self.md5(data, opts={}) data = data.to_s if opts[:binary] OpenSSL::Digest::MD5.digest(data)