Sha256: d7a19c7800de68a1af5f4054c7bee5022565570e3eb690e53b7abeee4a5ff7a9

Contents?: true

Size: 371 Bytes

Versions: 27

Compression:

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

27 entries across 27 versions & 9 rubygems

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