class ExoBasic::PasswordEncryption

Public Class Methods

check_encrypted(encrypted, str) click to toggle source
# File lib/exobasic/encrypt/password_encryption.rb, line 9
def self.check_encrypted(encrypted, str)
  BCrypt::Password.new(encrypted) == str
end
encrypt(str) click to toggle source
# File lib/exobasic/encrypt/password_encryption.rb, line 5
def self.encrypt(str)
  BCrypt::Password.create(str)
end