SHA1
Sintassi
%%{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 (
varchar2oblob): 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:
select sha1('abcde')
----------------------------------------
03de6c570bfe24bfc328ccd7ca46b76eadaf4334
L'esempio seguente restituisce null poiché l'input è null:
select sha1(null)
-------------------