We are no longer accepting contributions to Documentation. Please see our post on meta.
Sign up or log in
Save edit as a guest
Join Stack Overflow
We recognize you from another Stack Exchange Network site!
Join and Save DraftIn Postgres, cryptographic functions can be unlocked by using pgcrypto module. CREATE EXTENSION pgcrypto;
This draft deletes the entire topic.
DIGEST()
functions generate a binary hash of the given data. This can be used to create a random hash.
Usage: digest(data text, type text) returns bytea
Or: digest(data bytea, type text) returns bytea
Examples:
SELECT DIGEST('1', 'sha1')
SELECT DIGEST(CONCAT(CAST(current_timestamp AS TEXT), RANDOM()::TEXT), 'sha1')
Using Google
Using Facebook
Using Email and Password
We recognize you from another Stack Exchange Network site!
Join and Save Draft