iCrypto_EncryptRC4

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Crypto >

iCrypto_EncryptRC4

 

Description

 

Encrypts text with RC4 algorithm.

 

Syntax

 

encryptedText = iCrypto_EncryptRC4(plainText, sPassword)

 

Returns

 

String, encrypted text.

 

Parameters

 

Name

Type

Optional

Meaning

plainText

String

No

Original text

sPassword

String

No

Password for decryption

 

Remarks

 

Restrictions

 

See also

 

iCrypto_DecryptRijndael, iCrypto_EncryptRC4

 

Examples

 

Uses "Crypto"

 

String sText     = "This is my secret"

String sPassword = "This is my password"

 

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

'results: This is my secret