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.0.12 test/crypto_provider_test/sha512_test.rb
authlogic-2.0.7 test/crypto_provider_test/sha512_test.rb
authlogic-2.0.8 test/crypto_provider_test/sha512_test.rb
authlogic-2.0.6 test/crypto_provider_test/sha512_test.rb
authlogic-2.0.5 test/crypto_provider_test/sha512_test.rb
authlogic-2.0.4 test/crypto_provider_test/sha512_test.rb
authlogic-2.0.3 test/crypto_provider_test/sha512_test.rb
authlogic-2.0.14 test/crypto_provider_test/sha512_test.rb
authlogic-2.0.2 test/crypto_provider_test/sha512_test.rb
authlogic-2.0.9 test/crypto_provider_test/sha512_test.rb