Documentazione Invantiveparte di invantive cloud
Forum di supporto InvantiveAccedi / Registrati

SHA512

Sintassi

%%{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:

select sha512('abcde')

--------------------------------------------------------------------------------------------------------------------------------
878ae65a92e86cac011a570d4c30a7eaec442b85ce8eca0c2952b5e3cc0628c2e79d889ad4d5c7c626986d452dd86374b6ffaa7cd8b67665bef2289a5c70b0a1

L'esempio seguente restituisce null poiché l'input è null:

select sha512(null)

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