Re: xor for text

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: btober(at)seaworthysys(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: xor for text
Date: 2003-12-06 12:33:05
Message-ID: 3FD1CC81.60401@wildenhain.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Berend,

btober(at)seaworthysys(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-12-06 12:50:01 Re: Any *current* summary of postgres-r 7.2 status? (was Re:
Previous Message Arjen van der Meijden 2003-12-06 12:18:23 Re: Making a tree with "millions and millions" of dynamic