Documentación de Invantiveparte de Invantive Cloud
Foros de Soporte de InvantiveIniciar Sesión / Registrarse

SHA256

Sintaxis

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

Propósito

La función SQL SHA256 calcula el valor hash del parámetro según el algoritmo SHA256.

Véanse también SHA1, SHA384 y SHA512.

Parámetros:

  • Valor (varchar2 o blob): texto o BLOB para el que se va a calcular el valor hash SHA256.

Devuelve: un valor hash.

Ejemplos

El siguiente ejemplo obtiene el hash SHA256 de abcde:

select sha256('abcde')

----------------------------------------------------------------
36bbe50ed96841d10443bcb670d6554f0a34b761be67ec9c4a8ad2c0c44ca42c

El siguiente ejemplo devuelve null, ya que la entrada es null:

select sha256(null)

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