BenSelect Documentation
EncryptDataForExchangeByAES128WithCertificate Method
See Also  Send Feedback
Selerix.Foundation.Interfaces Namespace > ISecurityService Interface : EncryptDataForExchangeByAES128WithCertificate Method
certificateSubjectOrSerialNumber
Certificate subject id or serial number
data
String to encrypt
encryptedExchangeKey
Encrypted symmetric key in base64
Encrypts provided string by AES 128 with randomly generated symmetric key which is encrypted by RSA with certificate public key.

Syntax

JScript 
function EncryptDataForExchangeByAES128WithCertificate( 
   certificateSubjectOrSerialNumber : String,
   data : String,
   encryptedExchangeKey : String
) : String;

Parameters

certificateSubjectOrSerialNumber
Certificate subject id or serial number
data
String to encrypt
encryptedExchangeKey
Encrypted symmetric key in base64

Return Value

Encrypted string in base64

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2024 All Rights Reserved.