Encr_DecryptNewDES (function reference)

By February 1, 2019 February 12th, 2019 Online 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

switchesreserved for future use, leave empty or set to "-Unused"
textthe text to decrypt

Returned Result

Data type returned

Text

Result

the decrypted text

Originated in

Troi Encryptor Plug-in 1.2

Compatibility

FileMaker Pro 14 to 17

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”.

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 14 to 17 –> Encr_DecryptNewDES (encrp4261) 2019-0212 17:48:17