Project

bitster

0.0
No commit activity in last 3 years
No release in over 3 years
Experimental/educational cryptography/math library.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

Build Status Gem Version Coverage Status Code Climate

Bitster

Bitster is an educational/experimental/fun RSA public/asym key cryptography implementation in Ruby. To become a really cool toy, a custom AES engine and some multi-threading should be added.

Usage

require 'bitster'

key_pair = Bitster::RSAKeyPair.new(1024)
machine = Bitster::RSAMachine.new(:keypair => key_pair)
ciphertext = Array.new

%w(H E L L O).each do |char|
  ciphertext << machine.encrypt(char.ord)
end

ciphertext.each do |ascii_code|
  print (machine.decrypt(ascii_code)).chr
end