What data type returned when using .Encrypt method ? #2
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. The key is encrypted | Base 64 string |
EncryptedText |
string |
The encrypted text | - |
XlEncryptionModel
/// <summary>
/// Data model for Encrypted Excel
/// </summary>
public class XlEncryptionModel:IMBEncryptionModels.IMBFileEncryptionModel
{
public string Key { get; set; }
public byte[] EncryptedBytes { get; set; }
}
Property | data type | Description | Special type |
---|---|---|---|
Key |
string |
The key used In encryption. The key is encrypted | Base 64 string |
EncryptedBytes |
byte[] |
The encrypted excel file bytes | - |
PDFEncryptionModel
/// <summary>
/// Data model for Encrypted PDF
/// </summary>
public class PDFEncryptionModel:IMBEncryptionModels.IMBFileEncryptionModel
{
public string Key { get; set; }
public byte[] EncryptedBytes { get; set; }
}
Property | data type | Description | Special type |
---|---|---|---|
Key |
string |
The key used In encryption. The key is encrypted | Base 64 string |
EncryptedBytes |
byte[] |
The encrypted PDF file bytes | - |
FileEncryptionModel
/// <summary>
/// Data model for Encrypted File
/// </summary>
public class FileEncryptionModel:IMBEncryptionModels.IMBFileEncryptionModel
{
public string Key { get; set; }
public byte[] EncryptedBytes { get; set; }
}
Property | data type | Description | Special type |
---|---|---|---|
Key |
string |
The key used In encryption. The key is encrypted | Base 64 string |
EncryptedBytes |
byte[] |
The encrypted 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
.Encrypt
or.EncryptWithoutKey()
methods fromMBString
,MBXLSX
,MBPDF
, orMBFile
static classes the following is what returned :Encrypt
StrEncryptionModel
Encrypt
XlEncryptionModel
Encrypt
PDFEncryptionModel
Encrypt
FileEncryptionModel
StrEncryptionModel
K…