Here is a method we use on Windows:

  // SHAHMACEncode_Server  3/21/18
  //
C_TEXT($1;$2;$3;<>SHAHMAC)  // 3/15/18
  //
$Value:=$1  // 3/15/18
$Key:=$2  // 3/15/18
$Client:=$3  // 3/15/18
  //
vCommand:="/bin/bash"  // 3/21/18
  //
vInput:="echo -n \""+$Value+"\" | openssl sha1 -hmac \""+$Key+"\""  // Do not 
base 64 encode  3/21/18
  //
vOutput:=""  // 3/15/18
vErrorText:=""  // 3/15/18
  //
LAUNCH EXTERNAL PROCESS(vCommand;vInput;vOutput;vErrorText)  // 3/15/18
  //
vOutput:=Replace string(vOutput;<>LF;"")  // 3/21/18


It obviously uses an outside command, but it doesn’t need a plugin.


Randy Kaempen
Intellex Corporation

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to