What data type returned when using .Decrypt method ? #4
Answered
by
MbarkT3STO
MbarkT3STO
asked this question in
Questions & Answers
-
|
If I use MBString. |
Beta Was this translation helpful? Give feedback.
Answered by
MbarkT3STO
Dec 27, 2020
Replies: 1 comment
-
|
When you call
|
| Property | data type | Description | Special type |
|---|---|---|---|
Key |
string |
The key used In encryption and decryption. The key is encrypted | Base 64 string |
DecryptedText |
string |
The Decrypted text | - |
XlDecryptionModel
/// <summary>
/// Data model for Decrypted Excel
/// </summary>
public class XlDecryptionModel:IMBDecryptionModels.IMBFileDecryptionModel
{
public string Key { get; set; }
public byte[] DecryptedBytes { get; set; }
}
| Property | data type | Description | Special type |
|---|---|---|---|
Key |
string |
The key used In encryption and decryption. The key is encrypted | Base 64 string |
DecryptedBytes |
byte[] |
The decrypted Excel file bytes | - |
PDFDecryptionModel
/// <summary>
/// Data model for Decrypted PDF
/// </summary>
public class PDFDecryptionModel:IMBDecryptionModels.IMBFileDecryptionModel
{
public string Key { get; set; }
public byte[] DecryptedBytes { get; set; }
}
| Property | data type | Description | Special type |
|---|---|---|---|
Key |
string |
The key used In encryption and decryption. The key is encrypted | Base 64 string |
DecryptedBytes |
byte[] |
The decrypted PDF file bytes | - |
FileDecryptionModel
/// <summary>
/// Data model for Decrypted File
/// </summary>
public class FileDecryptionModel:IMBDecryptionModels.IMBFileDecryptionModel
{
public string Key { get; set; }
public byte[] DecryptedBytes { get; set; }
}
| Property | data type | Description | Special type |
|---|---|---|---|
Key |
string |
The key used In encryption and decryption. The key is encrypted | Base 64 string |
DecryptedBytes |
byte[] |
The decrypted File bytes | - |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MbarkT3STO
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you call
.Decryptor.DecryptWithoutKey()methods fromMBString,MBXLSX,MBPDF, orMBFilestatic classes the following is what returned :DecryptStrDecryptionModelDecryptXlDecryptionModelDecryptPDFDecryptionModelDecryptFileDecryptionModelStrDecryptionModelKey