From a0d9821b3737c21f5cc8f4fb1476d53361ecbfc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 20 Jan 2014 18:33:40 +0100 Subject: [PATCH] FIX: Digest::Digest deprecation --- lib/pbkdf2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pbkdf2.rb b/lib/pbkdf2.rb index d080bb05a..f21cc8aeb 100644 --- a/lib/pbkdf2.rb +++ b/lib/pbkdf2.rb @@ -15,7 +15,7 @@ class Pbkdf2 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"))