MBPDF #13
MbarkT3STO
started this conversation in
Classes
MBPDF
#13
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Definition :
For a special encryption and decryption for PDF files
State :
Static class
Methods :
EncryptPDFEncryptionModelEncryptWithoutKeyPDFEncryptionModelDecryptPDFDecryptionModelDecryptWithoutKeyEncryptWithoutKeymethodPDFDecryptionModelDetails :
EncryptEncrypt a PDF file using a custom Key and/or IV
1st three overloads
Byte[]Byte[]Byte[]2nd three overloads
StringByte[]Byte[]EncryptWithoutKeyEncrypt a PDF file without Key and IV
1st Overload
Byte[]2nd Overload
StringDecryptDecrypt an encrypted PDF file bytes using a custom Key and/or IV used in the encryption operation
Byte[]Byte[]Byte[]Keyparameter in decryption should converted frombase 64 stringtobytes, to do that when sending the key use.FromBase64ToBytes()extension method provided by MBSecurity.DecryptWithoutKeyDecrypt a PDF file already encrypted using
EncryptWithoutKeymethodByte[]Important notes
DecryptWithoutKeymethod, if you encrypt your data usingEncryptWithoutKeyEncryptorEncryptWithoutKeyyou will get a value typePDFEncryptionModelhas two properties (KeyandEncryptedBytes)Keyis your or auto-generated key used in encryptionKeyreturned after encryption is encryptedBeta Was this translation helpful? Give feedback.
All reactions