title: Encoding, Decoding by secret key
body: <p>If I have this cookie:</p>
  
  <pre><code>$my_cookie = "value";
  </code></pre>
  
  <p>And i would like to encode this value by secret key like this:</p>
  
  <pre><code>$encode_cookie = encoding($my_cookie, "key");
  setcookie('my_cookie',$encode_cookie);
  </code></pre>
  
  <p>Then,  I use way like this way to get the value of cookie:</p>
  
  <pre><code>$my_cookie = decoding($encode_cookie, "key");
  </code></pre>
  
  <p>So, Is there anyway to do that?</p>