Variables hash and visibility
Convertigo Public Knowledge base
Variables hash and visibility
In Convertigo, all variables have a ‘Visibility’ property, it is used to hide their value at different levels (logs, project YAML source file, etc).
If you want to hash your data before comparing it to your SQL data, for example, here is some Java/Javascript code you can use in a SequenceJS step:
var dgu = org.apache.commons.codec.digest.DigestUtils();
var token = dgu.sha256Hex(data);
“data” is a sequence variable or a combination of a “user” variable and a “password” variable, for example, if these variables are already available in the sequence:
var data = user + '/' + password;
var dgu = org.apache.commons.codec.digest.DigestUtils();
var token = dgu.sha256Hex(data);
Here is the Javadoc of sha256Hex method: https://commons.apache.org/proper/commons-codec/apidocs/org/apache/commons/codec/digest/DigestUtils.html#sha256Hex-java.lang.String-
sha256Hex method to hash variables
, multiple selections available,
Related content
Declare custom variables in forms data source
Declare custom variables in forms data source
More like this
How to address a step variable in JS expression?
How to address a step variable in JS expression?
More like this
Send multi values to a NoCode Database
Send multi values to a NoCode Database
More like this
Convertigo Java System Properties
Convertigo Java System Properties
More like this
Basic/NTLM Authentication
Basic/NTLM Authentication
More like this
Caching Convertigo Back End response
Caching Convertigo Back End response
More like this
(c) Convertigo 2023 https://www.convertigo.com