SHA256
Sintassi
%%{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 (
varchar2oblob): 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:
select sha256('abcde')
----------------------------------------------------------------
36bbe50ed96841d10443bcb670d6554f0a34b761be67ec9c4a8ad2c0c44ca42c
L'esempio seguente restituisce null poiché l'input è null:
select sha256(null)
-------------------