Sha256: c0a8efe4441a3ebf5ff80498620dd130b72f8608f9c15b4f2d03fda96e642ffd

Contents?: true

Size: 368 Bytes

Versions: 7

Compression:

Stored size: 368 Bytes

Contents

require 'test_helper'

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

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