TeleBoss 850 2.06.280_STD User Manual
Page 176
Returns
Returns the encrypted data as a string, and the data length.
Example
a-- initialize encryption
my_key = "yaddayadda"
a_lib.InitEncryption(my_key, #my_key)
-- encrypt a message
message = "Hello world!"
ciphertext, ciphertext_length = a_lib.Encrypt(message, #message)
-- print the encrypted message
print(ciphertext)
<this will yield a bunch of garbage characters>
-- decrypt the message
decrypted_message = a_lib.Decrypt(ciphertext, ciphertext_length)
-- print it out
print(decrypted_message)
Hello world!
a_lib.Exit
Description
Terminates the script.
Syntax
a_lib.Exit(result)
result: Result code to indicate the exit status of the script
Returns
None.
Example
-- if some operation failed
if SomeOperation() ~= true then
-- terminate with error (user-defined error code)
a_lib.Exit(3)
end
-- otherwise do some other stuff...
-- and then terminate normally (0 is the usual 'normal' result)
a_lib.Exit(0)
Содержание Teleboss 850
Страница 6: ......