PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Performs the asymmetric encryption of an envelope that has been encrypted with EncryptAsymmetricEnvelopped.
Example
// Encrypting a character string
//---------------------------------------
bufToEncrypt is Buffer = "Message to encrypt"
bufEncryptedMessage is Buffer
sPublicKeyFile is string = fExeDir() + "\PublicKey.pem"
sPublicKeyPassword is string = "xxx"

bufEncryptedMessage = EncryptAsymmetricEnvelopped(bufToEncrypt, sPublicKeyFile, ...
sPublicKeyPassword)

// Decryption  
// -------------
bufEncryptedMessage is Buffer
bufDecryptedMessage is Buffer
sPrivateKeyFile is string = fExeDir() + "\PrivateKey.pem"
sPrivateKeyPassword is string = "xxx"

bufDecryptedMessage = DecryptAsymmetricEnvelopped(bufEncryptedMessage, sPrivateKeyFile, ...
sPasswordPrivateKey)
Syntax
<Result> = DecryptAsymmetricEnvelopped(<Content to decrypt> , <Private key file> [, <Password>])
<Result>: Character string or Buffer
Decrypted content.
<Content to decrypt>: Buffer
Message to decrypt corresponding to the content of EncryptAsymmetricEnvelopped.
<Private key file>: Character string (with quotes)
Name and path of the file corresponding to the private key to use for decryption.
<Password>: Optional character string (with quotes)
Key file password (if required).
Component : wd240com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment