## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> | | SHA512[SHA512]:::quoted
SHA512 --> End((END))
```
## Purpose
The `SHA512` SQL function calculates hash value for parameter according to SHA512 algorithm.
See also [[SHA1]], [[SHA256]] and [[SHA384]].
Parameters:
- Value: text or BLOB to calculate SHA512 hash value for.
Returns: Hash value.
## Examples
The following example retrieves the SHA512 hash of `abcde`:
```sql
select sha512('abcde')
--------------------------------------------------------------------------------------------------------------------------------
878ae65a92e86cac011a570d4c30a7eaec442b85ce8eca0c2952b5e3cc0628c2e79d889ad4d5c7c626986d452dd86374b6ffaa7cd8b67665bef2289a5c70b0a1
```