Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("crypr")
- local test = "gpgauier"
- term.clear()
- term.setCursorPos(1, 1)
- print("Test = " .. test)
- local encrypted = crypr.encrypt(test)
- print("Encrypted = " .. encrypted)
- local decrypted = crypr.decrypt(encrypted)
- print("Decrypted = " .. decrypted)
- local file = fs.open("savedfile", "w")
- file.writeLine(encrypted )
- file.close()
- file = fs.open("savedfile","r")
- local fileEncrypted = file.readLine(1)
- print("File Encrypted = " .. fileEncrypted)
- local fileDecrypted = crypr.decrypt(fileEncrypted)
- print("File Decrypted = " .. fileDecrypted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement