Invantive 문서Invantive Cloud의 일부
Invantive 지원 포럼로그인 / 회원가입

SHA256

구문

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

목적

SHA256 SQL 함수는 SHA256 알고리즘에 따라 매개변수의 해시 값을 계산합니다. SHA256

참조: SHA1, SHA384 및 SHA512.

매개변수:

  • 값(varchar2 또는 blob): SHA256 해시 값을 계산할 텍스트 또는 BLOB.

반환: 해시 값.

예시

다음 예제는 abcde의 SHA256 해시를 조회합니다:

select sha256('abcde')

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

다음 예제는 입력이 null이므로 null을 반환합니다:

select sha256(null)

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