|
|
|
|
|
DecryptAsymmetricEnveloped (Function) In french: DécrypteAsymétriqueEnveloppé
Warning
From version 28, DecryptAsymmetricEnvelopped is kept for backward compatibility. This function has been replaced with DecryptAsymmetricEnveloped.
bufACrypter is Buffer = "Message à crypter"
bufMessageCrypté is Buffer
sFichierCléPublique is string = fExeDir() + "\ClePublique.pem"
sMotDePasseCléPublique is string = "xxx"
bufMessageCrypté = EncryptAsymmetricEnveloped(bufACrypter, sFichierCléPublique, sMotDePasseCléPublique)
bufMessageCrypté is Buffer
bufMessageDécrypté is Buffer
sFichierCléPrivée is string = fExeDir() + "\ClePrivee.pem"
sMotDePasseCléPrivée is string = "xxx"
bufMessageDécrypté = DecryptAsymmetricEnveloped(bufMessageCrypté, sFichierCléPrivée, sMotDePasseCléPrivée)
bufACrypter is Buffer = "Message à crypter"
bufMessageCrypté is Buffer
bufCléPublique is Buffer
bufCléPrivée is Buffer
(bufCléPrivée, bufCléPublique) = EncryptGenerateRSAKey(1024)
bufMessageCrypté = EncryptAsymmetricEnveloped(bufACrypter, bufCléPublique)
bufMessageCrypté is Buffer
bufMessageDécrypté is Buffer
bufMessageDécrypté = DecryptAsymmetricEnveloped(bufMessageCrypté, bufCléPrivée)
Syntax
<Result> = DecryptAsymmetricEnveloped(<Content to decrypt> , <Private key file> [, <Password>])
<Result>: Buffer Decrypted content. <Content to decrypt>: Buffer Message to decrypt corresponding to the content of EncryptAsymmetricEnveloped. <Private key file>: Character string or Buffer - Name and path of the file corresponding to the RSA private key to be used to decrypt the data. pem and p12 key formats are supported.
- Buffer containing the RSA private key to be used to decrypt the data.
<Password>: Optional character string Key file password (if required).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|