From: howardnews@selestial.com
To: Erik Wienhold <ewie@ewie.name>
Cc: Pgsql General <pgsql-general@lists.postgresql.org>
Subject: Re: Playing with pgcrypto
Date: Tue, 11 Oct 2022 00:17:45 +0100
Message-ID: <17ab80acead0fc76246e112f956ade7e@selestial.com> (raw)
In-Reply-To: <1927905082.230328.1665442347383@office.mailbox.org>
References: <21bd2e636ddba3214539cf26243d6708@selestial.com>
<1927905082.230328.1665442347383@office.mailbox.org>
> pgp_sym_encrypt uses a random salt each time, so you cannot compare the
> output
> to p1 like you would do with crypt to verify a given plaintext.
> Instead, use
> pgp_sym_decrypt with p1 as input to get the plaintext.
>
> --
> Erik
Ah! That makes sense. Thanks Erik!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: howardnews@selestial.com, ewie@ewie.name
Subject: Re: Playing with pgcrypto
In-Reply-To: <17ab80acead0fc76246e112f956ade7e@selestial.com>
References: <21bd2e636ddba3214539cf26243d6708@selestial.com> <1927905082.230328.1665442347383@office.mailbox.org> <17ab80acead0fc76246e112f956ade7e@selestial.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox