Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oi21w-0008R2-Ma for pgsql-general@arkaria.postgresql.org; Mon, 10 Oct 2022 23:17:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oi21u-0007Xe-4a for pgsql-general@arkaria.postgresql.org; Mon, 10 Oct 2022 23:17:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oi21t-0007XV-Qd for pgsql-general@lists.postgresql.org; Mon, 10 Oct 2022 23:17:49 +0000 Received: from mail-falcon.ukwebsolutionsdirect.com ([193.189.75.23]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oi21r-0002du-1f for pgsql-general@lists.postgresql.org; Mon, 10 Oct 2022 23:17:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selestial.com; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fzv6eVPpbUwkdF/iCTNdSN/N5nI0XDp9m+zXkg28cUk=; b=mISztgVIb8yd2JEOkyJVa/bao8 L5APGgqrZYQMgRKMdHgCsD4wxJoRfZLHjKrS325bK0YUH81UpEMQq9qA7WB0LfjcXyw/Bavq+QPj6 06AJdyH01YcbQWNpYXPXyg3sHc/PKBS0QCpf5IRZLoGzMIzw520BLFD90NgAYIUDrT4NsvWpzbgVA T6M8aFC6S3AGeMgZvpCkzIDF3IcGrJFxRNY2oFDMCwERqONO7t+mfeIG/FuzCXAuhL45ro/QsZoUj oIoqVUZu3FIcxZyEJwYki+8NXRWihH3jI6QXhNMKnsN7Svl31Rih4Bd2jmuTAz+3OJp/4UhewUbbr cQ1eUjXQ==; Received: from [::1] (port=50804 helo=falcon.ukwebsolutionsdirect.com) by falcon.ukwebsolutionsdirect.com with esmtpa (Exim 4.95) (envelope-from ) id 1oi21p-004WzU-TH; Tue, 11 Oct 2022 00:17:45 +0100 MIME-Version: 1.0 Date: Tue, 11 Oct 2022 00:17:45 +0100 From: howardnews@selestial.com To: Erik Wienhold Cc: Pgsql General Subject: Re: Playing with pgcrypto In-Reply-To: <1927905082.230328.1665442347383@office.mailbox.org> References: <21bd2e636ddba3214539cf26243d6708@selestial.com> <1927905082.230328.1665442347383@office.mailbox.org> User-Agent: Roundcube Webmail/1.5.2 Message-ID: <17ab80acead0fc76246e112f956ade7e@selestial.com> X-Sender: howardnews@selestial.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - falcon.ukwebsolutionsdirect.com X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - selestial.com X-Get-Message-Sender-Via: falcon.ukwebsolutionsdirect.com: authenticated_id: howardnews@selestial.com X-Authenticated-Sender: falcon.ukwebsolutionsdirect.com: howardnews@selestial.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > 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!