Sha256: 32c237806eee51ce445c179d02d61fccd9ca33bbbdc54a88c292a3794abdd372
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
require "spec_helper" describe Cryptify do subject { Cryptify.new } describe '#Process' do it 'Should pass' do expect('debug').to eq 'debug' # RSA tests. RSA = Cryptify::Rsa.new puts 'Encryption of text' # puts KCS1.i2osp(encrypt_integer(PKCS1.os2ip(plaintext), options)) puts RSA.inspect # puts 'Public keys' # puts '-----------' # puts RSA.get_public_keys puts '' puts 'Encryped message' puts '-----------' encrypted_message = RSA.encrypt(33) puts encrypted_message puts '' puts 'Decrypted message' puts '------------' puts RSA.decrypt(encrypted_message) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cryptify-0.0.2 | spec/cryptify_spec.rb |