Sha256: 87fd8c3d37f3685930ca2adbe6431a9b71c63ccd2c80d06dccfc1a96c7f39601

Contents?: true

Size: 368 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
authlogic-4.2.0 test/crypto_provider_test/sha256_test.rb
authlogic-4.1.1 test/crypto_provider_test/sha256_test.rb
authlogic-4.1.0 test/crypto_provider_test/sha256_test.rb