Re: does encrypt function support higher than basic ascii?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Naoko Reeves <naoko(at)lawlogix(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: does encrypt function support higher than basic ascii?
Date: 2009-11-17 20:13:46
Message-ID: 4B0303FA.1000105@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Naoko Reeves wrote:
> Hello,
>
> I have the following statement and accent e doesn't seems to be
> decrypted correctly.
>
> select decrypt(encrypt('aéiou','foo','aes'),'foo','aes')
>
> Could you tell me if there is an option for encoding or this function
> only encrypt basic ascii?

They take bytea rather than text and return bytea too.

Does casting the result give you valid text?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig de Stigter 2009-11-17 20:18:05 Re: Corrupt indices on already-dropped table (could not open relation with OID ...)
Previous Message Merlin Moncure 2009-11-17 19:55:48 Re: build array of composites in SPI