Trinithis

06-15-2007, 05:27 AM

1) CODE TITLE: Encryptor

2) AUTHOR NAME/NOTES: Trinithis

3) DESCRIPTION: Pumps out heavily encrypted text using matrices.

4) URL TO CODE: trinithis.awardspace.com/Encryptor/Encryptor.html

Seeing two recent encryptor type submissions made me want to batch this one out.

**Added: Unicode Buffer Value.**

You can make your own key. The key has customizable dimensions, and if you don't want to manually fill in your matrix, you can always randomize it, which happens automatically on page startup. To make your own, just type in the desired matrix size and hit "New Matrix". This creates an empty matrix. Also, you can customize any randomized values too. Only enter numbers into the matrix.

Once you have a likable key, just copy and save the value in "Matrix Key String". Next time you open the page, and you want to use your old key, clear the field and paste your copied value into it. Then hit the "Create Matrix From Text Field Button".

Keep any square brackets ('[') (']'), colons (':'), and commas in your key string and in your encrypted text.

The script automatically checks whether or not the matrix has bad values (such as letters) in it, and it checks to see if the matrix is singular or not when it performs certain actions. The user is prompted with appropriate dialogue.

How it works: Basically, the code uses math to encrypt your text using a square matrix of dim NxN, and it decodes it using that matrix's inverse. The text is converted to unicode and tossed into Nx1 matrices, where N is the size of the key. Then it multiplies them together to get your encrypted text. The process is repeated until all the text is translated into 1 or more matrices. The decryption is similar, except the encrypted matrices are multiplied by the key's inverse. As long as your matrix is of adequate size and contains decently sized values, your encryption is virtually undecipherable without a key or sample text. (Such as something like an 8x8 matrix with vals from -100 to 100. Not to mention 20x20 matrices with vals from -100000 to 100000) Yay! Math is fun!

2) AUTHOR NAME/NOTES: Trinithis

3) DESCRIPTION: Pumps out heavily encrypted text using matrices.

4) URL TO CODE: trinithis.awardspace.com/Encryptor/Encryptor.html

Seeing two recent encryptor type submissions made me want to batch this one out.

**Added: Unicode Buffer Value.**

You can make your own key. The key has customizable dimensions, and if you don't want to manually fill in your matrix, you can always randomize it, which happens automatically on page startup. To make your own, just type in the desired matrix size and hit "New Matrix". This creates an empty matrix. Also, you can customize any randomized values too. Only enter numbers into the matrix.

Once you have a likable key, just copy and save the value in "Matrix Key String". Next time you open the page, and you want to use your old key, clear the field and paste your copied value into it. Then hit the "Create Matrix From Text Field Button".

Keep any square brackets ('[') (']'), colons (':'), and commas in your key string and in your encrypted text.

The script automatically checks whether or not the matrix has bad values (such as letters) in it, and it checks to see if the matrix is singular or not when it performs certain actions. The user is prompted with appropriate dialogue.

How it works: Basically, the code uses math to encrypt your text using a square matrix of dim NxN, and it decodes it using that matrix's inverse. The text is converted to unicode and tossed into Nx1 matrices, where N is the size of the key. Then it multiplies them together to get your encrypted text. The process is repeated until all the text is translated into 1 or more matrices. The decryption is similar, except the encrypted matrices are multiplied by the key's inverse. As long as your matrix is of adequate size and contains decently sized values, your encryption is virtually undecipherable without a key or sample text. (Such as something like an 8x8 matrix with vals from -100 to 100. Not to mention 20x20 matrices with vals from -100000 to 100000) Yay! Math is fun!