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