---
title: "SHA1"
description: "La funzione SQL SHA1 calcola il valore hash del parametro secondo l\u0027algoritmo SHA1."
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/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:13Z
license: https://documentation.invantive.eu/it/
---

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

## Scopo
La funzione SQL `SHA1` calcola il valore hash del parametro secondo l'algoritmo SHA1.

Vedi anche [[SHA256]], [[SHA384]] e [[SHA512]].

Parametri:
- Valore (`varchar2` o `blob`): testo o BLOB per cui calcolare il valore hash SHA1.

Restituisce: un valore hash.

## Esempi
L'esempio seguente recupera l'hash SHA1 dell'elemento `abcde`:
```sql
select sha1('abcde')

----------------------------------------
03de6c570bfe24bfc328ccd7ca46b76eadaf4334
```
L'esempio seguente restituisce `null` poiché l'input è `null`:
```sql
select sha1(null)

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

```

