Skip to main content

Encr_DecryptNewDES (function reference)

By April 20, 2023April 25th, 2023Online Help, Troi Encryptor Plug-in
Troi Encryptor Plug-in for FileMaker Pro

Encr_DecryptNewDES

Decrypts text using a newDES algorithm and the current crypt key. Specify the correct key first with the function Encr_SetCryptKey.

SyntaxFunction badge

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 functionsFunction badge

Encr_Code
Encr_EncryptAES
Encr_EncryptNewDES
Encr_SetCryptKey

Related topics

Troi Encryptor Plug-in online help (overview)


Online Help Page for Troi Encryptor Plug-in for 16 to 2023 –> Encr_DecryptNewDES (encrp4261) 2023-0425 15:48:37