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 1msUhj-0003gz-E5 for pgsql-general@arkaria.postgresql.org; Wed, 01 Dec 2021 18:51:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1msUhi-0006g7-9w for pgsql-general@arkaria.postgresql.org; Wed, 01 Dec 2021 18:51:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msUhh-0006fk-Vw for pgsql-general@lists.postgresql.org; Wed, 01 Dec 2021 18:51:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msUhf-0004EM-Og for pgsql-general@lists.postgresql.org; Wed, 01 Dec 2021 18:51:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1B1IpcLG1986222; Wed, 1 Dec 2021 13:51:38 -0500 From: Tom Lane To: SQL Padawan cc: "pgsql-general@lists.postgresql.org" Subject: Re: Pgcrypto extension - decrypt(encrypt(... not returning original data? In-reply-to: References: Comments: In-reply-to SQL Padawan message dated "Wed, 01 Dec 2021 18:37:37 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1986220.1638384698.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 01 Dec 2021 13:51:38 -0500 Message-ID: <1986221.1638384698@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk SQL Padawan writes: > Why is my decrypt function not return the string 'da'? Have I not unders= tand something important? See the bytea_output setting. regards, tom lane