Login    Sites MenuBlueStep

BlueStep Platform Support

RelateScript
Outline full outline 
Overview 
Data Types 
Operators 
Statements 
Functions 
Data Conversion 
String Functions 
compareToIgnoreCase(...) 
escapeJS(...) 
indexOf(...) 
lastIndexOf(...) 
isKey(...) 
matches(...) 
nullOrEmpty(...) 
pad(...) 
replace(...) 
secureHash(...) 
SHA1AsBase64(...) 
SHA1AsHex(...) 
substring(...) 
toLowerCase(...) 
toTitleCaps(...) 
toUpperCase(...) 
trim(...) 
xssHtmlSafe(...) 
xssSafe(...) 
HTML/CSS/JavaScript 
Array Functions 
Date/Time Functions 
Mathematical Functions 
Advanced Functions 
Restricted Functions 
Working with Relate Data 
How Formulas Work 
Related Topics 

The SHA1AsHex(...) function has two variations, not counting syntax variations. It is used to encrypt a String using the standard SHA1 encryption algorithm.  The resulting bytes are then converted back into a String by encoding each byte as a two digit hexidecimal number.  When converting the String into bytes prior to encryption, an optional charset may be specified.  The default charset is UTF-8.

Syntax:
SHA1AsHex( input-string )
SHA1AsHex(
input-string, charset )
input-string.SHA1AsHex()
input-string.SHA1AsHex( charset )

Parameter Description
input-string The String value to be encrypted.
charset The charset to use, prior to encryption, when converting the String value into bytes.  The default is UTF-8.