I'm working on field encrypt / decrypt.
What I choose is
select encrypt('123456789012345','1234','aes');
encrypt
------------------------------------
\x34591627f9c8eae417fc7cbbf458592c
(1 row)
I got my data encrypted though, the other string is there after decrypt like below...
postgres=# select decrypt('\x34591627f9c8eae417fc7cbbf458592c','1234','aes');
decrypt
----------------------------------
\x313233343536373839303132333435
(1 row)
Have I made wrong way? (I know this kind of asking could be stupid... )
What I have to do is just getting a most simple way and encrypted data has small size....
Thanks in advance...