---
title: "SHA1"
description: "Funkce SQL SHA1 vypo\u010D\u00EDt\u00E1 hodnotu hash pro parametr podle algoritmu SHA1."
language: cs
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/cs/docs/invantive-universalsql/grammar/sql-functions/sha1
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/sha1
updated: 2026-12-04T14:24:08Z
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)) --> | | SHA1[SHA1]:::quoted
    SHA1 --> End((END))
```

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

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

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

Vrací: Hodnotu hash.

## Příklady
Následující příklad načte hash SHA1 hodnoty `abcde`:
```sql
select sha1('abcde')

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

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

```

