<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fencrypt</id>
		<title>IB Statements/encrypt - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fencrypt"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/encrypt&amp;action=history"/>
		<updated>2026-05-04T21:29:15Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/encrypt&amp;diff=355&amp;oldid=prev</id>
		<title>Badge: New page: '''ENCRYPT function'''   '''Syntax:'''  result-string = ENCRYPT(input-string, seed-string)    '''Discussion:'''  The ENCRYPT function encrypts the input-string, and assigns the result to t...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/encrypt&amp;diff=355&amp;oldid=prev"/>
				<updated>2009-05-20T10:55:26Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;ENCRYPT function&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  result-string = ENCRYPT(input-string, seed-string)    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The ENCRYPT function encrypts the input-string, and assigns the result to t...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''ENCRYPT function''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  result-string = ENCRYPT(input-string, seed-string)  &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The ENCRYPT function encrypts the input-string, and assigns the result to the result-string. The encryption algorithm uses the seed-string value as a seed. &lt;br /&gt;
&lt;br /&gt;
The input-string may be defined at any length from 1 to 254 bytes. The ENCRYPT function returns the same number of bytes as the input-string. &lt;br /&gt;
&lt;br /&gt;
The seed-string may be defined at any length from 1 to 254 characters. The value of the seed-string determines how the encryption algorithm transforms the input-string. (The seed-string value is also known as a &amp;quot;shared secret&amp;quot; between any application that encrypts data and any application that decrypts the same data.) &lt;br /&gt;
&lt;br /&gt;
'''Note:''' The longer the seed string, the better the encryption. We recommend a minimum of 16 bytes for the seed string. &lt;br /&gt;
&lt;br /&gt;
To decrypt the result-string, you must use the DECRYPT function and specify exactly the same seed-string (same length, same characters, same case) that was used to encrypt the data. &lt;br /&gt;
&lt;br /&gt;
See DECRYPT. &lt;br /&gt;
 &lt;br /&gt;
'''History:'''  This function was added to Comet98 in Build 266.  &lt;br /&gt;
&lt;br /&gt;
'''Example:'''  LENGTH 25 &amp;amp; LOCAL A$, B$&lt;br /&gt;
&lt;br /&gt;
LENGTH 16 &amp;amp; LOCAL SEED$&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
B$ = &amp;quot;Signature Systems, Inc.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
SEED$ = &amp;quot;ABCD1234EFGH5678&amp;quot;&lt;br /&gt;
&lt;br /&gt;
A$ = ENCRYPT(B$,SEED$)&lt;br /&gt;
&lt;br /&gt;
In the above example, the value contained in B$ (the input-string) is encrypted using an encryption seed of &amp;quot;ABCD1234EFGH5678&amp;quot;. The encrypted value is assigned to A$. &lt;br /&gt;
&lt;br /&gt;
To decrypt A$, use the DECRYPT function with a seed of &amp;quot;ABCD1234EFGH5678&amp;quot;. &lt;br /&gt;
 &lt;br /&gt;
'''Note:'''  To accomplish stronger encryption, you can encrypt the seed-string itself. The following code shows how an initial value (SEED1$) and initial seed (SEED2$) are used to create an encrypted seed (SEED3$). &lt;br /&gt;
&lt;br /&gt;
SEED1$ = &amp;quot;ABCD1234EFGH5678&amp;quot;&lt;br /&gt;
&lt;br /&gt;
SEED2$ = &amp;quot;9999LKJI8765HGFE4321DCBA&amp;quot;&lt;br /&gt;
&lt;br /&gt;
SEED3$ = ENCRYPT(SEED1$,SEED2$)&lt;br /&gt;
&lt;br /&gt;
B$ = &amp;quot;Signature Systems, Inc.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
A$ = ENCRYPT(B$,SEED3$)&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>