text to bignum

by toontalk
See Code Download Embed
A very simple encryption algorithm that treats each letter in the text as a digit in base 2^16 (or 2^32 if you prefer) using the unicode reporter. Encryption is just integer multiplication followed by addition and decryption is just subtraction followed by division.

An early version of this only relied upon multiplcation and division but an attacker could look for common factors in a set of message encrypted with the same keys. Addition prevents that.

Relies upon the BIGNUM library.

Created August 3, 2020

Last updated August 5, 2022

Published August 3, 2020