---
title: "SHA512"
description: "La funzione SQL SHA512 calcola il valore hash del parametro secondo l\u0027algoritmo SHA512."
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/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:52Z
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)) --> | | SHA512[SHA512]:::quoted
    SHA512 --> End((END))
```

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

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

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

Restituisce: un valore hash.

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

--------------------------------------------------------------------------------------------------------------------------------
878ae65a92e86cac011a570d4c30a7eaec442b85ce8eca0c2952b5e3cc0628c2e79d889ad4d5c7c626986d452dd86374b6ffaa7cd8b67665bef2289a5c70b0a1
```
L'esempio seguente restituisce `null` poiché l'input è `null`:
```sql
select sha512(null)

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

```

