<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=OsAESEncrypt</id>
		<title>OsAESEncrypt - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=OsAESEncrypt"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=OsAESEncrypt&amp;action=history"/>
		<updated>2026-05-12T06:30:16Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/index.php?title=OsAESEncrypt&amp;diff=53958&amp;oldid=prev</id>
		<title>Manni: Created page with &quot;{{osslfunc |threat_level=ignored |permissions=true |delay=0|function_syntax=list osAESEncrypt(string Secret, string plainText)&lt;br&gt; |ossl_example=&lt;source lang=&quot;lsl&quot;&gt; /* You can...&quot;</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=OsAESEncrypt&amp;diff=53958&amp;oldid=prev"/>
				<updated>2024-02-29T10:28:15Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{osslfunc |threat_level=ignored |permissions=true |delay=0|function_syntax=list osAESEncrypt(string Secret, string plainText)&amp;lt;br&amp;gt; |ossl_example=&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt; /* You can...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{osslfunc&lt;br /&gt;
|threat_level=ignored&lt;br /&gt;
|permissions=true&lt;br /&gt;
|delay=0|function_syntax=list osAESEncrypt(string Secret, string plainText)&amp;lt;br&amp;gt;&lt;br /&gt;
|ossl_example=&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
You can use this script in an object in your OpenSimulator region, &lt;br /&gt;
touch it to execute, and it will display the encrypted and decrypted text in the chat. &lt;br /&gt;
Note that the secret key is hardcoded in the script for demonstration purposes. &lt;br /&gt;
In a real scenario, &lt;br /&gt;
it should be securely stored and retrieved using more secure methods such as an external database.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
string Secret = &amp;quot;MySecretKey&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// Plain text to be encrypted&lt;br /&gt;
string plainText = &amp;quot;Hello, World!&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// Event handler for script start&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        // Encrypt the plain text&lt;br /&gt;
        string encryptedText = osAESEncrypt(Secret, plainText);&lt;br /&gt;
        &lt;br /&gt;
        // Display the encrypted text&lt;br /&gt;
        llOwnerSay(&amp;quot;Encrypted Text: &amp;quot; + encryptedText);&lt;br /&gt;
        &lt;br /&gt;
        // Decrypt the encrypted text&lt;br /&gt;
        string decryptedText = osAESDecrypt(Secret, encryptedText);&lt;br /&gt;
        &lt;br /&gt;
        // Display the decrypted text&lt;br /&gt;
        llOwnerSay(&amp;quot;Decrypted Text: &amp;quot; + decryptedText);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|description=&lt;br /&gt;
|additional_info=This function was added in 0.9.3.0&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Manni</name></author>	</entry>

	</feed>