mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: Digest::Digest deprecation
This commit is contained in:
parent
26b7bf388e
commit
a0d9821b37
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue