Navigation:  thinBasic Modules > Crypto >

iCrypto_EncryptRC4

Previous pageReturn to chapter overviewNext page

 

Description

 

The iCrypto_EncryptRC4() function encrypts plain text with RC4 algorithm.

 

Syntax

 

iCrypto_EncryptRC4(sText AS STRING, sPassword AS STRING) AS STRING

 

Returns

 

Returns AS STRING

   The encrypted text.

 

Parameters

 

Name

Type

Optional

Meaning









sText AS STRING

The data string

  sPassword AS STRING

The password

 

Remarks

 

 

Restrictions

 

 

See also

 

iCrypto_EncryptRijndael, iCrypto_DecryptRC4

 

Examples

 

dim sText as string

dim sPassword as string

 

sText = "This is my secret encrypted with RC4! "

sPassword = "This is my password"

 

MSGBOX 0, iCrypto_DecryptRC4(iCrypto_EncryptRC4(sText, sPassword), sPassword)  

'results: This is my secret encrypted with RC4!