OsAESEncryptTo

From OpenSimulator

Revision as of 03:41, 29 February 2024 by Manni (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
list osAESEncryptTo(string Secret, string plainText, string ivString)
No descriptions provided
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
/*
This script encrypts the plain text using the provided secret key and initialization vector (IV), 
and then displays the encrypted text in the chat. 
You can replace "Hello, World!" with the actual plain text you want to encrypt, 
and "MyIVString" with the actual IV string you want to use. 
As before, note that the secret key and IV are hardcoded in the script 
for demonstration purposes and should be securely stored in a real scenario.
*/
string Secret = "MySecretKey";
 
// Plain text to be encrypted
string plainText = "Hello, World!";
 
// Initialization Vector (IV)
string ivString = "MyIVString";
 
// Event handler for script start
default
{
    state_entry()
    {
        // Encrypt the plain text
        string encryptedText = osAESEncryptTo(Secret, plainText, ivString);
 
        // Display the encrypted text
        llOwnerSay("Encrypted Text: " + encryptedText);
    }
}
Notes
This function was added in 0.9.3.0


Personal tools
General
About This Wiki