Re: xor for text - Mailing list pgsql-general

From Tino Wildenhain
Subject Re: xor for text
Date
Msg-id 3FD1CC81.60401@wildenhain.de
Whole thread Raw
In response to xor for text  (<btober@seaworthysys.com>)
Responses Re: xor for text
List pgsql-general
Hi Berend,

btober@seaworthysys.com wrote:
> Anyone have a good function for byte-by-byte XOR of text or varchar data
> (or does one exist already in pg which I missed in the documentation)?
>
> ~Berend Tober

You should have a look at pg_crypt which offers a wider range
of cryptographic functions for postgres. I dont think there
is a xor yet, but otoh, xor is inherently insecure if its
cryptography you are trying.

However you might be able to use the examples to write
your own XOR function or use one of the other language
modules to do so.

HTH
Tino Wildenhain


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Any *current* summary of postgres-r 7.2 status? (was Re:
Next
From: Chris Travers
Date:
Subject: Feedback? Is there interest in a PostgreSQL-based CRM suite friendly to shared hosting?