---
title: "SHA512"
description: "Funkce SQL SHA512 vypo\u010D\u00EDt\u00E1 hodnotu hash pro parametr podle algoritmu SHA512."
language: cs
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/cs/docs/invantive-universalsql/grammar/sql-functions/sha512
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/sha512
updated: 2026-12-04T14:24:48Z
license: https://documentation.invantive.eu/cs/
---

## Syntaxe
```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))
```

## Účel
Funkce SQL `SHA512` vypočítá hodnotu hash pro parametr podle algoritmu SHA512.

Viz také [[SHA1]], [[SHA256]] a [[SHA384]].

Parametry:
- Hodnota (`varchar2` nebo `blob`): text nebo BLOB, pro který se má vypočítat hodnota hash SHA512.

Vrací: Hodnotu hash.

## Příklady
Následující příklad načte hash SHA512 pro `abcde`:
```sql
select sha512('abcde')

--------------------------------------------------------------------------------------------------------------------------------
878ae65a92e86cac011a570d4c30a7eaec442b85ce8eca0c2952b5e3cc0628c2e79d889ad4d5c7c626986d452dd86374b6ffaa7cd8b67665bef2289a5c70b0a1
```
Následující příklad vrátí `null`, protože vstupem je `null`:
```sql
select sha512(null)

-------------------

```

