Skip to main content
Skip table of contents

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:

JS
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:

JS
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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.