User Tools

Site Tools


syntax:functions:hash

Hash(value)

Category: Special function


Description

This function calculates a 128-bit hash in Base64 encoding. The function returns the same result for the same value on any computer.


Arguments

ArgumentTypeDescription
valueAnyThe source value used to generate the hash value.

Return value type: Text


Remarks

This can't be used for creating primary/foreign keys as it allows hash collisions.


Examples

hash(0)  //Returns '1hipffIbvUu2HHnN7KlltA'
hash(TRUE)  //Returns 'nn8s3lvGRHcA0N3/R6NGQw'  (Note, this is boolean TRUE.)
hash('TRUE')  //Returns 'vSAg6sjmONe8VqjFASGqXw'  (Note, this is text TRUE.)
syntax/functions/hash.txt · Last modified: 2021/09/13 20:49 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki