Encryption

// Source -> Encrypted
// 10 -> 11 (1 + 0) (1 + 0)
// 1010 -> 1211 (1 + 0) (1 + 0 + 1) (0 + 1 + 0) (1 + 0)
//
// 1010
// |/
// 1... (1+0)

// 1010
// \|/
// .2.. (1+0+1)

// 1010
//  \|/
// ..1. (0+1+0)

// 1010
//   \|
// ...1 (1+0)

// Result: 1211

// Write function to go from encrypted to source
// Source numbers are always 1 or 0

Using Just Strings

Strings plus some Math

Bitwise

Last updated

Was this helpful?