Encr_DecryptNewDES |
Decrypts text using a newDES algorithm and the current crypt key. Specify the correct key first with the function Encr_SetCryptKey.
Syntax
Encr_DecryptNewDES ( switches ; text )
Parameters
switches | reserved for future use, leave empty or set to "-Unused" |
text | the text to decrypt |
Returned Result
Data type returned
Text
Result
the decrypted text
Originated in
Troi Encryptor Plug-in 1.2
Compatibility
FileMaker Pro 16 to FileMaker Pro 2023
Considerations
If the current key does not match the key used to encrypt, the text is not decrypted and the input text is returned unchanged.
– AES is a more secure algorithm than NewDES: see Encr_EncryptAES for information on this algorithm.
Example
Set Field [ gErrorCode ; Encr_SetCryptKey ( "-Unused" ; "mySecret" ) ]
If [ gErrorCode = 0 ]
Set Field [ result ; Encr_Decrypt ( "-Unused" ; "l’ùé—JtO<=! Û¡\}0Óÿ„]˘¿Cºdè≈ˇ" ) ]
End If
gives this result: “Hello World”.
Used in example file
EncryptNewDES.fmp12
Related functions
Encr_Code |
Encr_EncryptAES |
Encr_EncryptNewDES |
Encr_SetCryptKey |
Related topics
Troi Encryptor Plug-in online help (overview)