Sha256: f1f00260526a7d257df2bcbe44b39d3f02b217cfb7bfe1bde7595ede2b529ec3

Contents?: true

Size: 368 Bytes

Versions: 7

Compression:

Stored size: 368 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

7 entries across 7 versions & 1 rubygems

Version Path
authlogic-4.0.1 test/crypto_provider_test/sha256_test.rb
authlogic-4.0.0 test/crypto_provider_test/sha256_test.rb
authlogic-3.8.0 test/crypto_provider_test/sha256_test.rb
authlogic-3.7.0 test/crypto_provider_test/sha256_test.rb
authlogic-3.6.1 test/crypto_provider_test/sha256_test.rb
authlogic-3.6.0 test/crypto_provider_test/sha256_test.rb
authlogic-3.5.0 test/crypto_provider_test/sha256_test.rb