Sha256: f8e7f249e6387845402198a7f92e49d8bfeaa9921ca146048c44926a8804edd7

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

module HyperKittenMeow
  class Encryptor
    # Returns the hash digest of the given string.
    def self.encrypt(string)
      cost = ActiveModel::SecurePassword.min_cost ? BCrypt::Engine::MIN_COST :
                                                    BCrypt::Engine.cost
      BCrypt::Password.create(string, cost: cost)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyper-kitten-meow-0.1.2 app/models/hyper_kitten_meow/encryptor.rb