<?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=OsAESEncryptTo</id>
		<title>OsAESEncryptTo - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=OsAESEncryptTo"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=OsAESEncryptTo&amp;action=history"/>
		<updated>2026-05-12T05:26:36Z</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=OsAESEncryptTo&amp;diff=53959&amp;oldid=prev</id>
		<title>Manni: Created page with &quot;{{osslfunc |threat_level=ignored |permissions=true |delay=0|function_syntax=list osAESEncryptTo(string Secret, string plainText, string ivString)&lt;br&gt; |ossl_example=&lt;source lan...&quot;</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=OsAESEncryptTo&amp;diff=53959&amp;oldid=prev"/>
				<updated>2024-02-29T10:41:08Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{osslfunc |threat_level=ignored |permissions=true |delay=0|function_syntax=list osAESEncryptTo(string Secret, string plainText, string ivString)&amp;lt;br&amp;gt; |ossl_example=&amp;lt;source lan...&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 osAESEncryptTo(string Secret, string plainText, string ivString)&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;
This script encrypts the plain text using the provided secret key and initialization vector (IV), &lt;br /&gt;
and then displays the encrypted text in the chat. &lt;br /&gt;
You can replace &amp;quot;Hello, World!&amp;quot; with the actual plain text you want to encrypt, &lt;br /&gt;
and &amp;quot;MyIVString&amp;quot; with the actual IV string you want to use. &lt;br /&gt;
As before, note that the secret key and IV are hardcoded in the script &lt;br /&gt;
for demonstration purposes and should be securely stored in a real scenario.&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;
// Initialization Vector (IV)&lt;br /&gt;
string ivString = &amp;quot;MyIVString&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 = osAESEncryptTo(Secret, plainText, ivString);&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;
}&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>