This example shows how to encrypt QR-code signature.
using(Signaturesignature=newSignature("sample.pdf")){// setup key and passphrasestringkey="1234567890";stringsalt="1234567890";// create data encryptionIDataEncryptionencryption=newSymmetricEncryption(SymmetricAlgorithmType.AES,key,salt);// setup QR-Code optionsQrCodeSignOptionsoptions=newQrCodeSignOptions(){// set QR-code textText="This is secure text that will be encrypted",// QR-code typeEncodeType=QrCodeTypes.QR,// specify serialization encryptionDataEncryption=encryption,// locate and aligh signatureHeight=100,Width=100,VerticalAlignment=VerticalAlignment.Bottom,HorizontalAlignment=HorizontalAlignment.Right,Margin=newPadding(){Right=10,Bottom=10}};// sign document to filesignature.Sign("QrCodeEncrypted.pdf",options);}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourΒ GitHub examples: