A number of SQL functions for the SHAfamily of cryptographic hashes have been added to Invantive SQL:

sha1
: hash value using the SHA1 hashing algorithm (see SHA1  Wikipedia), 
sha256
: hash value using the SHA2 algorith with a digest length of 256 bits (see SHA2  Wikipedia), 
sha384
: hash value using the SHA2 algorith with a digest length of 384 bits (see SHA2  Wikipedia), 
sha512
: hash value using the SHA2 algorith with a digest length of 512 bits (see SHA2  Wikipedia).
These hash functions all accept a text or BLOB as input values, and return a hexadecimal hash value.
The following SQLexpression will always calculate the SHA1 hash of a constant text:
select sha1('my input')
The following SQLexpression will always calculate the SHA1 hash of a random binary string:
select sha1(random_blob(16))
Related to the SHA hash functions is the also available MD5
SQLfunction.
Availability
The cryptographic hash functions of the SHAfamily are available starting release 22.0.630 and BETA release 22.1.190.