Search Postgresql Archives

Re: does encrypt function support higher than basic ascii?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux