SHA1
Syntax
%%{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))
Purpose
The SHA1 SQL function calculates hash value for parameter according to SHA1 algorithm.
See also SHA256, SHA384 and SHA512.
Parameters:
- Value (
varchar2orblob): text or BLOB to calculate SHA1 hash value for.
Returns: Hash value.
Examples
The following example retrieves the SHA1 hash of abcde:
select sha1('abcde')
----------------------------------------
03de6c570bfe24bfc328ccd7ca46b76eadaf4334
The following example returns null since the input is null:
select sha1(null)
-------------------