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.0.0 test/crypto_provider_test/sha256_test.rb
authlogic-rails3-2.2 test/crypto_provider_test/sha256_test.rb
kb-authlogic-2.1.7 test/crypto_provider_test/sha256_test.rb
railsware-authlogic-2.1.6.1 test/crypto_provider_test/sha256_test.rb
cotweet-authlogic-2.1.6 test/crypto_provider_test/sha256_test.rb
jdl-authlogic-2.1.6.2 test/crypto_provider_test/sha256_test.rb
jdl-authlogic-2.1.6.1 test/crypto_provider_test/sha256_test.rb