Top Level Namespace
Defined Under Namespace
Classes: CryptCheckpass
Instance Method Summary collapse
-
#crypt_checkpass?(pass, hash) ⇒ true, false
Parses what the given hash is, apply the same hasing against pass, then compares the hashed pass and the given hash.
-
#crypt_newhash(password, pref = nil, id: nil, **kwargs) ⇒ Object
Generates new password hashes.
Instance Method Details
#crypt_checkpass?(pass, hash) ⇒ true, false
Parses what the given hash is, apply the same hasing against pass, then compares the hashed pass and the given hash.
34 35 36 |
# File 'lib/crypt_checkpass.rb', line 34 def crypt_checkpass? pass, hash return CryptCheckpass::crypt_checkpass? pass, hash end |
#crypt_newhash(password, perf) ⇒ String #crypt_newhash(password, id: , **kwargs) ⇒ String
Generates new password hashes. The provided password is randomly salted, then hashed using the parameter.
66 67 68 |
# File 'lib/crypt_checkpass.rb', line 66 def crypt_newhash password, pref = nil, id: nil, **kwargs return CryptCheckpass::crypt_newhash password, pref, id: id, **kwargs end |