---
title: "SHA256"
description: "La funzione SQL SHA256 calcola il valore di hash per il parametro secondo l\u0027algoritmo SHA256."
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/docs/invantive-universalsql/grammar/sql-functions/sha256
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/sha256
updated: 2026-12-04T14:24:27Z
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)) --> | | SHA256[SHA256]:::quoted
    SHA256 --> End((END))
```

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

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

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

Restituisce: un valore hash.

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

----------------------------------------------------------------
36bbe50ed96841d10443bcb670d6554f0a34b761be67ec9c4a8ad2c0c44ca42c
```
L'esempio seguente restituisce `null` poiché l'input è `null`:
```sql
select sha256(null)

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

```

