Posted 05 November 2012 - 01:31 PM
This is a Encryption / Decryption API I made that encrypts and decrypts text. It works fine without a cipher but it is highly recommended to use a cipher. It is theoretically impossible to decrypt an encrypted message without knowing its cipher.
How to Get It:
- Using Computercraft
- Manually
Download file from: pastebin.com/AP6eqKNm
Copy into a computer in the world's save folder
How to Use It (Example):
Result:
For those who do not beleive this
This is what the function of the encryption algorithm looks like graphically (without a chipher), where "x" is the position of the character in a string, and where "y" is the offset value;
For those who do not believe that this encryption is secure, I have encrypted a message for those who think they can crack it; pastebin.com/AR2fTaAw
How to Get It:
- Using Computercraft
pastebin get AP6eqKNm crypt
- Manually
Download file from: pastebin.com/AP6eqKNm
Copy into a computer in the world's save folder
How to Use It (Example):
os.loadAPI("crypt")
message = "test"
encrypted = crypt.encrypt(message)
encryptedWithCipher = crypt.encrypt(message, "cipher10274")
print("Original Message: " .. message .. "n")
print("Encrypted: " .. encrypted)
print("Encrypted With Cipher: " .. encryptedWithCipher .. "n")
print("Decrypted: " .. crypt.decrypt(encrypted))
print("Decrypted With Cipher: " .. crypt.decrypt(encryptedWithCipher, "cipher10274"))
Result:
For those who do not beleive this
Note: The cipher can either be an integer or a string, if anything else is used, it will not use a cipher.
This is what the function of the encryption algorithm looks like graphically (without a chipher), where "x" is the position of the character in a string, and where "y" is the offset value;
For those who do not believe that this encryption is secure, I have encrypted a message for those who think they can crack it; pastebin.com/AR2fTaAw