Activecrypt Online Help Prev Next
About ActiveCrypt
About
ActiveCrypt overview
How to ...
How to make pair of keys
Create new public key from private
How to decrypt string
How to encrypt string
How to save keys
Free keys
Programmer reference
Hash
Hash overview
Methods
HashFile
HashVariant
Properties
Error
Crypt
Encryption overview
Methods
DecryptFile
DecryptVariant
EncryptFile
EncryptVariant
FreeKey
LoadKeyFromString
LoadKey
Properties
AddCRLF
Error
KeySize
Base64
Base64 overview
Methods
DecodeFile
DecodeVariant
EncodeFile
EncodeVariant
Properties
AddCRLF
Error
Sign
Sign overview
Methods
FreeKey
LoadKey
LoadKeyFromString
MakeVariantSignature
MakeFileSignature
VerifyFileSignature
VerifyVariantSignature
Properties
AddCRLF
Error
RSACrypt (old, use Crypt)
Methods
FreeKey
GenerateCouple
GeneratePublicKey
GetVersion
LoadKeyFromString
LoadKey
PublicEncrypt
PrivateDecrypt
SaveKeyToString
SaveKey
Properties
About
Async
Error
Events
OnDecryptionFinished
OnEncryptionFinished
OnError
OnKeyGenerationFinished
Disclaimer

PublicEncrypt

Sub PublicEncrypt ( PublicKey As Long, ClearText As String, [Cookie As Long] ) As String

In the synchronous mode the PublicEncrypt function encrypts given string with a public key and returns encrypted string. In the asynchronous mode, the function returns empty string immediately and spawns encryption internally. After encryption is done, OnEncryptionFinished is fired. For more information about encryption in the asynchronous mode please see Async mode.

If an error happens the Error property of ActiveCrypt contains the error code. For information about the error code, please see Error property. If the function is succeeded the Error has value of ERR_OK.

This HTML Help has been published using the chm2web software.