MBFile #14
MbarkT3STO
started this conversation in
Classes
MBFile
#14
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 encrypt and decrypt files
State :
Static class
Methods :
EncryptFileEncryptionModelEncryptWithoutKeyFileEncryptionModelDecryptFileDecryptionModelDecryptWithoutKeyEncryptWithoutKeymethodFileDecryptionModelDetails :
EncryptEncrypt a file using a custom Key and/or IV
1st three overloads
Byte[]Byte[]Byte[]2nd three overloads
StringByte[]Byte[]EncryptWithoutKeyEncrypt a file without Key and IV
1st Overload
Byte[]2nd Overload
StringDecryptDecrypt encrypted 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 file already encrypted using
EncryptWithoutKeymethodByte[]Important notes
DecryptWithoutKeymethod, if you encrypt your data usingEncryptWithoutKeyEncryptorEncryptWithoutKeyyou will get a value typeFileEncryptionModelhas two properties (KeyandEncryptedBytes)Keyis your or auto-generated key used in encryptionKeyreturned after encryption is encryptedBeta Was this translation helpful? Give feedback.
All reactions