Sha256: f5e78b7ec1b48cc7673b44c11a535ed5ee8ddb3b847c2ba4178b0b8144553231

Contents?: true

Size: 368 Bytes

Versions: 7

Compression:

Stored size: 368 Bytes

Contents

require 'test_helper'

module CryptoProviderTest
  class Sha512Test < ActiveSupport::TestCase
    def test_encrypt
      assert Authlogic::CryptoProviders::Sha512.encrypt("mypass")
    end

    def test_matches
      hash = Authlogic::CryptoProviders::Sha512.encrypt("mypass")
      assert Authlogic::CryptoProviders::Sha512.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/sha512_test.rb
authlogic-4.0.0 test/crypto_provider_test/sha512_test.rb
authlogic-3.8.0 test/crypto_provider_test/sha512_test.rb
authlogic-3.7.0 test/crypto_provider_test/sha512_test.rb
authlogic-3.6.1 test/crypto_provider_test/sha512_test.rb
authlogic-3.6.0 test/crypto_provider_test/sha512_test.rb
authlogic-3.5.0 test/crypto_provider_test/sha512_test.rb