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