Skip to content

Returns the SM3 hash of a string.

func.sm3(<str>)
func.sm3('hello')
┌───────────────┐
'becbbfaa...'
└───────────────┘
SM3(<str>)
SELECT SM3('hello');
┌──────────────────────────────────────────────────────────────────┐
│ becbbfaae6548b8bf0cfcad5a27183cd1be6093b1cceccc303d9c61d0a645268 │
└──────────────────────────────────────────────────────────────────┘