Two strings private key (symmetric) encryption and decryption method
Two strings encryption algorithm where a long and a short string are used. The byte values of the short string points to a location of the long string and the plaintext is aligned with the long string's location and encryption is performed using the long string's byte values and the plaintext the process is repeated for all bytes of the short string pointing to the long string and aligned a byte to encrypt with the long string.
1 . A two strings encryption means on computer readable medium comprising:
a string to encrypt comprising a first byte value;
a first string comprising a plurality of bytes, wherein each byte in the plurality of bytes comprises a value and a location for the value;
a second string comprising a second byte value;
code means to:
use the value of the second byte value to point to a location on the first string, the location corresponding to the value of the second byte value;
align the first byte value with the location; and
perform an XOR operation with the first byte value and the value at the location, wherein the XOR operation produces an encrypted byte value.
2 . A two strings decryption means on computer readable medium comprising:
a string to decrypt comprising a first byte value;
a first string comprising a plurality of bytes, wherein each byte in the plurality of bytes comprises a value and a location for the value;
a second string comprising a second byte value;
code means to:
use the value of the second byte value to point to a first location on the first string, the location corresponding to the value of the second byte value;
align the first byte value with the a location; and
perform an XOR operation with the first byte value and the value at the location, wherein the XOR operation produces a decrypted byte value.