/
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
Related content
Declare custom variables in forms data source
Declare custom variables in forms data source
More like this
Send multi values to a NoCode Database
Send multi values to a NoCode Database
More like this
Caching Convertigo Back End response
Caching Convertigo Back End response
More like this
How to filter out data from a SQL query, XML/JSON file or API call?
How to filter out data from a SQL query, XML/JSON file or API call?
More like this
"Invalid token header. No token provided." or "USER NOT IN GROUP" error message in lib_baserow.
"Invalid token header. No token provided." or "USER NOT IN GROUP" error message in lib_baserow.
More like this
Convertigo Java System Properties
Convertigo Java System Properties
More like this
(c) Convertigo 2023 https://www.convertigo.com