Sha256: a560354fa9e888dc4a86697b652d5afadb089a5e200ca91e3149e00352409319

Contents?: true

Size: 404 Bytes

Versions: 27

Compression:

Stored size: 404 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper.rb'

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

Version data entries

27 entries across 27 versions & 11 rubygems

Version Path
authlogic-2.1.11 test/crypto_provider_test/sha256_test.rb
authlogic-2.1.10 test/crypto_provider_test/sha256_test.rb
authlogic-2.1.8 test/crypto_provider_test/sha256_test.rb
authlogic-2.1.7 test/crypto_provider_test/sha256_test.rb
expertiza-authlogic-2.1.6.1 test/crypto_provider_test/sha256_test.rb
wulffeld_authlogic-2.1.3 test/crypto_provider_test/sha256_test.rb
authlogic-2.1.6 test/crypto_provider_test/sha256_test.rb
lockbox_middleware-1.2.1 vendor/gems/authlogic-2.1.3/test/crypto_provider_test/sha256_test.rb
Empact-authlogic-2.1.5 test/crypto_provider_test/sha256_test.rb
authlogic-2.1.5 test/crypto_provider_test/sha256_test.rb
authlogic-2.1.4 test/crypto_provider_test/sha256_test.rb
Empact-authlogic-2.1.4 test/crypto_provider_test/sha256_test.rb
namxam-authlogic-2.1.3.1 test/crypto_provider_test/sha256_test.rb
drogus-authlogic-2.1.3 test/crypto_provider_test/sha256_test.rb
novelys_authlogic-2.1.6 test/crypto_provider_test/sha256_test.rb
novelys_authlogic-2.1.5 test/crypto_provider_test/sha256_test.rb
novelys_authlogic-2.1.4 test/crypto_provider_test/sha256_test.rb
novelys_authlogic-2.1.3 test/crypto_provider_test/sha256_test.rb
ginst-2009.12.8 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
skippy-authlogic-2.1.3 test/crypto_provider_test/sha256_test.rb