digest

suggest change

digest() is provided by the pgcrypto extension (CREATE EXTENSION pgcrypto). It returns a binary hash of the given data. The hash is deterministic: the same input and algorithm always produce the same bytea. It is not a random generator. The second example varies the input with random() and the clock.

Usage: digest(data text, type text) returns bytea

Or: digest(data bytea, type text) returns bytea

Examples:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents