Framework EDI Reference. Methods and Properties
ediSecurity. EnableEncryption

Encrypts the semantic entity that was assigned to this security token.

Syntax:

Example:

Set oGroup = oInterchange.FirstGroup
Set oSecurity = oGroup.GetSecurity
oSecurity.EnableEncryption = True
oSecurity.ImportPublicKey sPath & sPKeyFile

Set oTransactionSet = oGroup.FirstTransactionSet
Set oSecurity = oTransactionSet.GetSecurity
oSecurity.EnableEncryption = True
oSecurity.ImportPublicKey sPKeyFile

oEdiDoc.Save sSecuredPath & sEdiFile