TdeaEncrypt(String, String, Mode, String, EncodingBase) Method |
Encrypt encoded data string.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static string Encrypt(
string inputStr,
string keyStr,
Mode mode,
string ivStr,
EncodingBase encodingBase
)
Public Shared Function Encrypt (
inputStr As String,
keyStr As String,
mode As Mode,
ivStr As String,
encodingBase As EncodingBase
) As String
Parameters
- inputStr String
- Encoded input data
- keyStr String
- Encoded key representing exactly 24 bytes (192 bits)
- mode Mode
- Cipher Mode
- ivStr String
- Encoded IV representing exactly 8 bytes or "" for ECB mode
- encodingBase EncodingBase
- Type of encoding used
Return Value
StringCiphertext in hex-encoded string or empty string on error
RemarksFor ECB and CBC modes, the length of the decoded input bytes must be an exact multiple of the block length
See Also