Sha256: ef4d249d2287106bbbe1e38436225ae2ab85363a2bc35a7eb8a8f21a4055ce2d

Contents?: true

Size: 372 Bytes

Versions: 27

Compression:

Stored size: 372 Bytes

Contents

require 'test_helper'

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 & 9 rubygems

Version Path
authlogic-3.4.6 test/crypto_provider_test/sha256_test.rb
authlogic-3.4.5 test/crypto_provider_test/sha256_test.rb
authlogic-3.4.4 test/crypto_provider_test/sha256_test.rb
authlogic-3.4.3 test/crypto_provider_test/sha256_test.rb
authlogic-3.4.2 test/crypto_provider_test/sha256_test.rb
authlogic-3.4.1 test/crypto_provider_test/sha256_test.rb
authlogic-3.4.0 test/crypto_provider_test/sha256_test.rb
authlogic-3.3.0 test/crypto_provider_test/sha256_test.rb
authlogic-3.2.0 test/crypto_provider_test/sha256_test.rb
authlogic-3.1.3 test/crypto_provider_test/sha256_test.rb
authlogic-3.1.2 test/crypto_provider_test/sha256_test.rb
authlogic-3.1.1 test/crypto_provider_test/sha256_test.rb
nulogy-authlogic-3.1.0.1 test/crypto_provider_test/sha256_test.rb
Empact-authlogic-3.1.0 test/crypto_provider_test/sha256_test.rb
authlogic-3.1.0 test/crypto_provider_test/sha256_test.rb
Empact-authlogic-3.0.3 test/crypto_provider_test/sha256_test.rb
antlypls-authlogic-3.0.3 test/crypto_provider_test/sha256_test.rb
authlogic-3.0.3 test/crypto_provider_test/sha256_test.rb
authlogic-3.0.2 test/crypto_provider_test/sha256_test.rb
authlogic-3.0.1 test/crypto_provider_test/sha256_test.rb