Sha256: 49f8dadc2c8b25980775f36a9962da61f6ef36a6cf3128e65f799310e8630837

Contents?: true

Size: 403 Bytes

Versions: 50

Compression:

Stored size: 403 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper.rb'

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

50 entries across 50 versions & 15 rubygems

Version Path
authlogic-2.1.11 test/crypto_provider_test/sha512_test.rb
authlogic-2.1.10 test/crypto_provider_test/sha512_test.rb
binarylogic-authlogic-2.1.0 test/crypto_provider_test/sha512_test.rb
binarylogic-authlogic-2.1.1 test/crypto_provider_test/sha512_test.rb
crankharder-authlogic-2.1.1 test/crypto_provider_test/sha512_test.rb
jlecour-authlogic-2.1.2 test/crypto_provider_test/sha512_test.rb
kschrader-authlogic-2.1.2 test/crypto_provider_test/sha512_test.rb
kschrader-authlogic-2.1.3 test/crypto_provider_test/sha512_test.rb
authlogic-2.1.8 test/crypto_provider_test/sha512_test.rb
authlogic-2.1.7 test/crypto_provider_test/sha512_test.rb
expertiza-authlogic-2.1.6.1 test/crypto_provider_test/sha512_test.rb
wulffeld_authlogic-2.1.3 test/crypto_provider_test/sha512_test.rb
authlogic-2.1.6 test/crypto_provider_test/sha512_test.rb
lockbox_middleware-1.2.1 vendor/gems/authlogic-2.1.3/test/crypto_provider_test/sha512_test.rb
Empact-authlogic-2.1.5 test/crypto_provider_test/sha512_test.rb
authlogic-2.1.5 test/crypto_provider_test/sha512_test.rb
authlogic-2.1.4 test/crypto_provider_test/sha512_test.rb
Empact-authlogic-2.1.4 test/crypto_provider_test/sha512_test.rb
namxam-authlogic-2.1.3.1 test/crypto_provider_test/sha512_test.rb
drogus-authlogic-2.1.3 test/crypto_provider_test/sha512_test.rb