RE: Barcode

2020-03-20 Thread Stephen J. Orth via 4D_Tech
Even when we were using bar code fonts, we would always purchase them to ensure the quality of the image. These need to be precise, especially if your using compact, high density codes. Free fonts are really not free... Steve -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d

Re: Barcode

2020-03-20 Thread Keisuke Miyako via 4D_Tech
it seems like on some versions of 4D (for Mac), an invisible character is appended at the end for alignment. that would screw up the barcode data. 2020/03/21 2:01、Lee Hinde via 4D_Tech <4d_tech@lists.4d.com>のメール: But we ended up using hmBarcode because the free fonts

Re: HMAC SHA256 in native 4D code?

2020-03-20 Thread Keisuke Miyako via 4D_Tech
if a single PHP function does not produce results in a format you can use, you might have to encapsulate your call in a script file. 2020/03/21 4:48、Two Way Communications via 4D_Tech <4d_tech@lists.4d.com>のメール: With the ’True’ parameter, the php function returns bin

Re: HMAC SHA256 in native 4D code?

2020-03-20 Thread Randy Kaempen via 4D_Tech
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+"\""

Re: HMAC SHA256 in native 4D code?

2020-03-20 Thread Two Way Communications via 4D_Tech
I did use PHP execute, then did a Base64 encode on it, and then cleaned ‘+’, ‘/‘ and ‘=‘. Still got an invalid signature. With the ’True’ parameter, the php function returns binary; often this is empty. With the parameter set to false, you get what they call ‘lowercase hexies’. No clue at all

Re: Printing Listbox multiple pages (resolved)

2020-03-20 Thread John J Foster via 4D_Tech
Hi Bob, The email was a quick response to my question since I found an answer before anyone responded. I wanted to makes sure there was an answer to the question for posterity. > What are these two objects you are printing using 'Print object’ ? These are two different objects, aka, object nam

AW: HMAC SHA256 in native 4D code?

2020-03-20 Thread Epperlein, Lutz (agendo) via 4D_Tech
Regarding JWT (JSON Web Token), there is another plugin by Miyako: https://github.com/miyako/4d-plugin-jwt Lutz Epperlein -Ursprüngliche Nachricht- Betreff: Re: HMAC SHA256 in native 4D code? Hi, I had to spend some time looking into this recently myself. You have two options: 1 - K.

Re: Printing Listbox multiple pages (resolved)

2020-03-20 Thread Bob Miller via 4D_Tech
RE> I found an older JPR example (I think) and it was really easy! vOver:=False // Flag for cancel printing Repeat $ref:=Print object(*;"tscanChartInfo") vOver:=Print object(*;"lb_Timeline") If (Not(vOver)) PA

Re: HMAC SHA256 in native 4D code?

2020-03-20 Thread JBellos via 4D_Tech
Hi, I had to spend some time looking into this recently myself. You have two options: 1 - K. Miyako has a plugin - CommonCrypto. Easy to use. $signature:=HMACSHA256 ($keyData;$stringData;Crypto BASE64) 2 - Use PHP execute, but then encode the result (assuming you need to) php

RE: Barcode

2020-03-20 Thread Stephen J. Orth via 4D_Tech
As I've said previously, we also switched away from fonts (to hmBarcode) for varying reasons: 1. The various Windows OS updates have caused problems due to the changes on how they index fonts internally. 2. Bar code fonts are not part of the normal Windows font list, so you need to have a way

Re: HMAC SHA256 in native 4D code?

2020-03-20 Thread Spencer Hinsdale via 4D_Tech
Looks like you pad the key, append the msg, then hash. Then pad the key again, append the previous hash, and hash again. https://stackoverflow.com/questions/11415055/how-to-use-hmac-sha256 From: Two Way Communications Date: Friday, March 20, 2020 at 9:37 AM To: Spencer Hinsdale Cc: 4D iNug T

Re: Barcode

2020-03-20 Thread Lee Hinde via 4D_Tech
There are a bunch: https://www.google.com/search?client=firefox-b-1-d&q=barcode+fonts+free But we ended up using hmBarcode because the free fonts didn't work with new scanners that the client got. > On Mar 20, 2020, at 9:26 AM, stardata.info via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi

Re: HMAC SHA256 in native 4D code?

2020-03-20 Thread Two Way Communications via 4D_Tech
Hi Spencer, I have been looking at it, but it does not do what I want to do. I need to construct a JSON Web Token (JWT) For that, I need to encrypt a string with a secret key, to obtain the encrypted token. As far as I can see there is no parameter in ‘Generate Digest' to do so. I tried to use

Barcode

2020-03-20 Thread stardata.info via 4D_Tech
Hi All, Someone knows some links of free font barcode? Thanks /Ferdinando/ Il 20/03/20 12:23, 4d_tech-requ...@lists.4d.com ha scritto: Send 4D_Tech mailing list submissions to 4d_tech@lists.4d.com To subscribe or unsubscribe via the World Wide Web, visit https://lists.4d.com/

Re: HMAC SHA256 in native 4D code?

2020-03-20 Thread Spencer Hinsdale via 4D_Tech
Does this help? https://doc.4d.com/4Dv17/4D/17.4/Generate-digest.301-4882385.en.html On 3/20/20, 9:15 AM, "4D_Tech on behalf of Rudy Mortier via 4D_Tech" <4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote: Hi Bruno, I was looking in nabble to find a solution f

Re: HMAC SHA256 in native 4D code?

2020-03-20 Thread Rudy Mortier via 4D_Tech
Hi Bruno, I was looking in nabble to find a solution for generating HMAC-SHA256 keys. I have been trying to generate JSON web tokens, but they fail because of an invalid signature. I tried using : PHP Execute("";"hash_hmac";$HMACSHA256;"sha256";($base64UrlHeader+"."+$base64UrlPayload);$key), bu

Re: Remote working with 4D networks - what are people using ?

2020-03-20 Thread Arnaud de Montard via 4D_Tech
> Le 20 mars 2020 à 12:23, Milan Adamov via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > >> On Mar 19, 2020, at 12:34 PM, Herr Alexander Heintz via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> >> Complete lack of a remote terminal solution for Macs is the primary reason >> why most businesse

Re: Remote working with 4D networks - what are people using ?

2020-03-20 Thread Milan Adamov via 4D_Tech
> On Mar 19, 2020, at 12:34 PM, Herr Alexander Heintz via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Complete lack of a remote terminal solution for Macs is the primary reason > why most businesses have switched to Windows in the last 8-10 years. Not true, since Mac OS X Lion built in screen

Re: Remote working with 4D networks - what are people using ?

2020-03-20 Thread Paul Dennis via 4D_Tech
Install the server as administrator then install the client on the server machine but login as user using the user profile of each user. Make sure you have enabled remote desktop server And have setup access file in the firewall. Start the 4D client and connect to the server whilst logged in as tha

Re: Remote working with 4D networks - what are people using ?

2020-03-20 Thread Herr Alexander Heintz via 4D_Tech
Thanks Tim, live and learn… Will look into this over the weekend. Cheers Stay safe Alex > Am 19.03.2020 um 20:44 schrieb Tim Nevels via 4D_Tech <4d_tech@lists.4d.com>: > > On Mar 19, 2020, at 2:00 PM, Alexander Heintz wrote: > >> OsX is as much a UNIX flavor as we are basically primates. >> >