|
Navigation: thinBasic language > Modules > Crypto > iCrypto_EncryptRC4 |
![]() ![]()
|
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
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!
| © 2004-2008 thinBasic. All rights reserved. | Version 1.6.0.10 | Web Site: http://www.thinbasic.com |