iCrypto_DecryptRC4

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Crypto >

iCrypto_DecryptRC4

 

Description

 

The iCrypto_DecryptRC4() function decrypts previously encripted with RC4 algorithm.

 

Syntax

 

decryptedText = iCrypto_DecryptRC4(sCryptedText, sPassword)

 

Returns

 

String, decrypted (plain text) string.

 

Parameters

 

Name

Type

Optional

Meaning

sCryptedText

String

No

Original encrypted text

sPassword

String

No

Password for decryption

 

Remarks

 

Restrictions

 

See also

 

iCrypto_DecryptRijndael, iCrypto_EncryptRC4

 

Examples

 

Uses "Crypto"

 

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

String sPassword = "This is my password"

 

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

'results: This is my secret encrypted with RC4!