Sha256: c791143743edb0728ad8fa28ee7bf14e89d02349a8b144ef0d82f376898e70e7

Contents?: true

Size: 371 Bytes

Versions: 18

Compression:

Stored size: 371 Bytes

Contents

require 'test_helper'

module CryptoProviderTest
  class BCrpytTest < ActiveSupport::TestCase
    def test_encrypt
      assert Authlogic::CryptoProviders::BCrypt.encrypt("mypass")
    end
    
    def test_matches
      hash = Authlogic::CryptoProviders::BCrypt.encrypt("mypass")
      assert Authlogic::CryptoProviders::BCrypt.matches?(hash, "mypass")
    end
  end
end

Version data entries

18 entries across 18 versions & 9 rubygems

Version Path
authlogic-3.1.3 test/crypto_provider_test/bcrypt_test.rb
authlogic-3.1.2 test/crypto_provider_test/bcrypt_test.rb
authlogic-3.1.1 test/crypto_provider_test/bcrypt_test.rb
nulogy-authlogic-3.1.0.1 test/crypto_provider_test/bcrypt_test.rb
Empact-authlogic-3.1.0 test/crypto_provider_test/bcrypt_test.rb
authlogic-3.1.0 test/crypto_provider_test/bcrypt_test.rb
Empact-authlogic-3.0.3 test/crypto_provider_test/bcrypt_test.rb
antlypls-authlogic-3.0.3 test/crypto_provider_test/bcrypt_test.rb
authlogic-3.0.3 test/crypto_provider_test/bcrypt_test.rb
authlogic-3.0.2 test/crypto_provider_test/bcrypt_test.rb
authlogic-3.0.1 test/crypto_provider_test/bcrypt_test.rb
authlogic-3.0.0 test/crypto_provider_test/bcrypt_test.rb
authlogic-rails3-2.2 test/crypto_provider_test/bcrypt_test.rb
kb-authlogic-2.1.7 test/crypto_provider_test/bcrypt_test.rb
railsware-authlogic-2.1.6.1 test/crypto_provider_test/bcrypt_test.rb
cotweet-authlogic-2.1.6 test/crypto_provider_test/bcrypt_test.rb
jdl-authlogic-2.1.6.2 test/crypto_provider_test/bcrypt_test.rb
jdl-authlogic-2.1.6.1 test/crypto_provider_test/bcrypt_test.rb