sha1.php
Table of Contents
Functions
- sha1() : string
- Calculate the SHA1 checksum for text and return it in hexadecimal format.
Functions
sha1()
Calculate the SHA1 checksum for text and return it in hexadecimal format.
sha1(string $value) : string
This helper wraps the ArangoDB AQL function SHA1(text) which calculates
the SHA1 checksum for the given text and returns it as a hexadecimal string.
SHA1 is a cryptographic hash function producing a 160-bit hash.
Example AQL usage:
SHA1("hello") // returns "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"
SHA1("world") // returns "7c211433f02071597741e6ff5a8ea34789abbf43"
SHA1(doc.content) // returns SHA1 hash of content
Parameters
- $value : string
-
String expression to calculate SHA1 hash for.
Tags
Return values
string —The formatted AQL expression.