This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Encrypts data with a designated algorithm.
Syntax
s = Crypto_Encrypt(sText, sPassword, nAlgorithm)
Returns
String
The encrypted data.
Parameters
Name |
Type |
Optional |
Meaning |
sText |
String |
No |
text to be encrypted |
sPassword |
String |
No |
password for encrypting data. |
nAlgorithm |
Numeric |
No |
The cryptographic algorithm to be used. It can be one of the following: %Crypto_CALG_RC2 %Crypto_CALG_RC4 %Crypto_CALG_DES |
Remarks
This functions is based on Microsoft's PROV_RSA_FULL Cryptographic Service Provider Type.
Restrictions
See also
Examples
Dim sTxt As String
sTxt = Crypto_Encrypt("Hello world again!", "The secret key", %Crypto_CALG_RC2)
MSGBOX 0, Crypto_Decrypt(sTxt, "The secret key", %Crypto_CALG_RC2)
' results: Hello world again!