Sha256: 12dd9c65858dea0855b25cb9a58707e1d74e6805b88b27c75ec3685098cdbea5
Contents?: true
Size: 727 Bytes
Versions: 1
Compression:
Stored size: 727 Bytes
Contents
def encrypt(codex) transformer = { "a" => "2", "b" => "i", "c" => "b", "d" => "z", "e" => "0", "f" => "h", "g" => "a", "h" => "7", "i" => "x", "j" => "3", "k" => "q", "l" => "c", "m" => "g", "n" => "1", "o" => "6", "p" => "m", "q" => "r", "r" => "p", "s" => "5", "t" => "l", "u" => "9", "v" => "e", "w" => "v", "x" => "y", "y" => "w", "z" => "d", "." => "8", "," => "n", "?" => "f", "\(" => "u", "\)" => "k", "\"" => "t", ":" => "o", "$" => "s", "\'" => "j", } encryption = codex.to_s.downcase.gsub(/\S/, transformer).gsub(/\s/, "4") return encryption.upcase.chars.join(" ") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codex_vitae-0.6.0 | lib/codex_vitae.rb |