Sha256: a5682abb4417a470f9ee9b0f5eb79d450a8778544433ed98c085c96396f6f04d
Contents?: true
Size: 287 Bytes
Versions: 2
Compression:
Stored size: 287 Bytes
Contents
begin require "openssl" rescue LoadError end require "test/unit" class TestCipher < Test::Unit::TestCase def test_encrypt_takes_parameter enc = OpenSSL::Cipher::Cipher.new('DES-EDE3-CBC') enc.encrypt("123") data = enc.update("password") data << enc.final end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jruby-openssl-0.2.3 | test/test_cipher.rb |
jruby-openssl-0.2.2 | test/test_cipher.rb |