FIX: Digest::Digest deprecation

This commit is contained in:
Régis Hanol 2014-01-20 18:33:40 +01:00
parent 26b7bf388e
commit a0d9821b37

View file

@ -15,7 +15,7 @@ class Pbkdf2
def self.hash_password(password, salt, iterations, algorithm = "sha256") def self.hash_password(password, salt, iterations, algorithm = "sha256")
h = OpenSSL::Digest::Digest.new(algorithm) h = OpenSSL::Digest.new(algorithm)
u = ret = prf(h, password, salt + [1].pack("N")) u = ret = prf(h, password, salt + [1].pack("N"))