SHA1
Sintaxis
%%{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))
Propósito
La función SQL SHA1 calcula el valor hash del parámetro según el algoritmo SHA1.
Véanse también SHA256, SHA384 y SHA512.
Parámetros:
- Valor (
varchar2oblob): texto o BLOB para el que se va a calcular el valor hash SHA1.
Devuelve: un valor hash.
Ejemplos
El siguiente ejemplo obtiene el hash SHA1 de abcde:
select sha1('abcde')
----------------------------------------
03de6c570bfe24bfc328ccd7ca46b76eadaf4334
El siguiente ejemplo devuelve null, ya que la entrada es null:
select sha1(null)
-------------------