Skip to main content

Encr_EncodeShortSafeAscii (function reference)

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

Encr_EncodeShortSafeAscii

Encodes a text to Ascii characters in the range 45…127. These characters can be exported as tab separated text and also sent safely over internet.

SyntaxFunction badge

Encr_EncodeShortSafeAscii ( switches ; text )

Parameters

switches reserved for future use, leave empty or set to "-Unused"
text text to encode

Returned Result

Data type returned

Text

Result

The result will be formatted like this:

%Bencodedsafe text%E

The result of this function can be safely exported to for example TAB separated text.

Originated in

Troi Encryptor Plug-in 2.0

Compatibility

FileMaker Pro 16 to FileMaker Pro 2023

Considerations

See also:
Troi-EncodeSafeAscii and Troi-DecodeSafeAscii.

Example

Set Field [ result ; Encr_EncodeShortSafeAscii ( "-Unused" ;  
			"• Don’t forget to have fun, Günther and Børg! " ) ]

gives this result: “%B.V-PDon/Tt-Pforget-Pto-Phave-Pfun-\-PG.Pnther-Pand-PB/>rg-Q-P%E”

Example 2

In a database you have defined a text field named “patientName” and “patientData” which contains user data. Then you can define a calculation field:

safeNameCalc   calculation     = Encr_EncodeShortSafeAscii ( "-Unused" ;  patientName )
safeDataCalc   calculation     = Encr_EncodeShortSafeAscii ( "-Unused" ;  patientData )

these fields will contain the encoded text. If you export these safe fields you can get it like this:

Bj/>rn<TAB>Broken heel

TIP Use this function for sending encrypted data.

Used in example file

EmailSaf.fmp12

Related functionFunction badge

Encr_EncodeSafeAscii

Related topics

Troi Encryptor Plug-in online help (overview)


Online Help Page for Troi Encryptor Plug-in for 16 to 2023 –> Encr_EncodeShortSafeAscii (encrp4265) 2023-0425 15:52:32