This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Conn332's profile picture

Base Three Encryption/ Decryption Program

Started by Conn332, 18 April 2013 - 09:45 AM
Conn332 #1
Posted 18 April 2013 - 11:45 AM
Base Three Encryption/ Decryption Program


Features:
  • Converts Plain text into base three binary-like numbers
  • It then changes those numbers into an encrypted message the same length as the original message(includes spaces)
Planned Features:
Spoiler
  1. encryption key for actual security against someone who doesn't have the program
  2. Save output to a user-defined file
  3. Change menus to look different between encrypter and decrypter
Bugs:
Spoilerdoesn't encrypt messages with only one word properly
Screenies:
Spoiler
Encryption program

Decryption Program
downloads:
SpoilerEncrypter: pastebin.com/0EGvShUc
Decrypter: pastebin.com/qSfaSnhq
Dlcruz129 #2
Posted 19 April 2013 - 04:03 AM
It would be nice if it kept capitalization, but overall not bad!
Spongy141 #3
Posted 22 April 2013 - 04:52 PM
Hmm.. seems cool.
BlankTitle #4
Posted 04 May 2013 - 04:37 PM
Very Cool man look forward to using it
Dave-ee Jones #5
Posted 27 June 2013 - 06:02 PM
Hey. This is a really good program but I found a bug.
1. When decrypting 'hello' all it does is encrypt it again. But, if you decrypt 'hello' and then encrypt the string that it gave you, you will get 'hello' again.

Basically, what I am saying is that the decryption program is just another encryption program that works the opposite way as the encryption program. Doing it this way makes some words, like 'hello' not work properly. When you decrypt the encryption of 'hello' (bojn) it comes up with another word.
I think you should take another look at this…

But I think it's an awesome program apart from this bug.

EDIT: I just saw in your bug section that it says about the same thing…
jesusthekiller #6
Posted 28 June 2013 - 07:21 AM
Instead of (line 44 - 48)

for i=1, #message do
  letter = string.sub(message,i,i)
  letter = string.lower(letter)
  table.insert(word,characters[letter])
end
it can be

for i=1, #message do
  table.insert(word,characters[message:sub(i,i):lower()])
end

Nice crypt thingy :P/>


Your code is a mess, use local variables! I can't say if changing it won't break anything…