Início » VídeoTutorial
Check out the Certillion Tutorials, this video provides a complete step-by-step guide to the main features of Certillion, with a special focus on demonstrating how to use the API to perform digital signatures in a practical and efficient way.
"client_id": ".....", "client_secret": "......" |
var crypto = require('crypto') function base64URLEncode(str) { return str.toString('base64') .replace(/\+/g, '-') .replace(/\//g, '_') .replace(/=/g, ''); } var verifier = base64URLEncode( crypto.randomBytes(32) ); console.log("verifier: " + verifier); function sha256(buffer) { return crypto .createHash('sha256') .update(buffer) .digest(); } var challenge = base64URLEncode( sha256(verifier) ); console.log("challenge: " + challenge); |
$ sha256sum.exe e-Sec_com_linha.jpg | awk '{ print $1}' | xxd -r -p | base64
|
sha256sum.exe e-Sec_com_linha.jpg: generates the sha256 hash of the file.
awk '{ print $1}': captures only the hexadecimal value of the hash.
xxd -r -p: convert hexadecimal hash to binary.
base64: transforms the binary hash into base64. |