Skip to contents
  • sha1(value = VARCHAR): Returns a VARCHAR with the SHA-1 hash of the value.

  • sha1(blob = BLOB): Returns a VARCHAR with the SHA-1 hash of the blob.

Usage

sha1(value)

Arguments

value

VARCHAR

Value

VARCHAR

Overloads

  • sha1(value = VARCHAR)

  • sha1(blob = BLOB)

SQL examples

sha1('🦆')
sha1('\xAA\xBB'::BLOB)