Menu

SHA-2 Hashing in GBase 8a: sha2() and Its Four Modes
📰

SHA-2 Hashing in GBase 8a: sha2() and Its Four Modes

DEV Community: sql·Michael·3 days ago
#P6bTuNqR
#devtosql#devto#dev#gbase#sha2
Long article (392 words) — no AI summary yet.
Reading 0:00
15s threshold

Recent versions of the China-domestically developed GBase 8a MPP database from GBASE added the SHA2 family of hash functions. This post covers sha2 and its four modes — SHA-224 , SHA-256 , SHA-384 and SHA-512 — with the actual output from version 9.5.3.28.4_patch.1bcc63ff .

Tested version

gbase> select version(); +---------------------------+ | version() | +---------------------------+ | 9.5.3.28.4_patch.1bcc63ff | +---------------------------+ 1 row in set (Elapsed: 00:00:00.00)

Enter fullscreen mode

Exit fullscreen mode

Syntax

sha2(str String,mode int) return String

Enter fullscreen mode

Exit fullscreen mode

str : the input string.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.