User Tools

Site Tools


syntax:functions:hash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
syntax:functions:hash [2015/08/24 22:34] – created dmitrysyntax:functions:hash [2015/08/24 22:41] dmitry
Line 1: Line 1:
 ===== Hash(value) ===== ===== Hash(value) =====
  
-Calculates 128-bit hash in Base64 encoding.+Calculates 128-bit hash in Base64 encoding. The function returns the same result for the same value on any computer. It can't be used for creating primary/foreign keys as it allows [[https://en.wikipedia.org/wiki/Collision_%28computer_science%29|hash collisions]]. 
 + 
 +^  Example  ^  Result 
 +|  0| 1hipffIbvUu2HHnN7KlltA | 
 +|  TRUE  | nn8s3lvGRHcA0N3/R6NGQw | 
 +| 'TRUE'  | vSAg6sjmONe8VqjFASGqXw |
  
syntax/functions/hash.txt · Last modified: 2021/09/13 20:49 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki