W3cubDocs

/Ruby 3

module OpenSSL::PKCS5

Public Instance Methods

pbkdf2_hmac(pass, salt, iter, keylen, digest) Show source
# File ext/openssl/lib/openssl/pkcs5.rb, line 13
def pbkdf2_hmac(pass, salt, iter, keylen, digest)
  OpenSSL::KDF.pbkdf2_hmac(pass, salt: salt, iterations: iter,
                           length: keylen, hash: digest)
end

OpenSSL::PKCS5.pbkdf2_hmac has been renamed to OpenSSL::KDF.pbkdf2_hmac. This method is provided for backwards compatibility.

pbkdf2_hmac_sha1(pass, salt, iter, keylen) Show source
# File ext/openssl/lib/openssl/pkcs5.rb, line 18
def pbkdf2_hmac_sha1(pass, salt, iter, keylen)
  pbkdf2_hmac(pass, salt, iter, keylen, "sha1")
end

Ruby Core © 1993–2020 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.