photomix/vendor/plugins/authlogic/test/crypto_provider_test/aes256_test.rb
2011-04-11 18:07:31 +08:00

14 lines
371 B
Ruby

require 'test_helper'
module CryptoProviderTest
class AES256Test < ActiveSupport::TestCase
def test_encrypt
assert Authlogic::CryptoProviders::AES256.encrypt("mypass")
end
def test_matches
hash = Authlogic::CryptoProviders::AES256.encrypt("mypass")
assert Authlogic::CryptoProviders::AES256.matches?(hash, "mypass")
end
end
end