How to modify 'EncryptedData' element properties such as Id and/or node prefix?

First, you need to fill all properties needed for encryption, then call Encrypt() method. This method will perform encryption and build “EncryptedData” structure.

Next, to change EncryptedData element Id, set ID property as shown (C# notation):
ElXMLEncryptor.EncryptedData.ID = "id123";

To change the prefix of the nodes add:

ElXMLEncryptor.EncryptedData.EncryptionPrefix = "xenc"; // the default value is: "#default xenc"

Ready to get started?

Learn more about SecureBlackbox or download a free trial.

Download Now