doc here https://developer.4d.com/docs/en/API/CryptoKeyClass.html
CryptoKey was added in v18 R4 it's a class, you need to be in project mode it's a generic crypto tool but designed specifically for JWT tokens in other words, the hash function is not a standalone feature; you can not hash any arbitrary data, you can only hash a CryptoKey instance supported encryption algorithms: ES256, ES384 and ES512 (ECDSA) RS256, RS384, RS512 (RSA) PS256, PS384 (PEM) supported digest algorithms: SHA256, SHA384, SHA512 notice HS@is not supported. --- for hash there is Generate digest but again, no HMAC https://doc.4d.com/4Dv17/4D/17.5/Generate-digest.301-5255934.en.html ********************************************************************** 4D Internet Users Group (4D iNUG) New Forum: https://discuss.4D.com Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

