title: code cripto equivalent in php
body: <p>cripto frontapp response, how convert code for PHP?</p>
  
  <pre><code>const crypto = require('crypto');
  const apiSecret = 'YOUR_API_SECRET';
  
  function validateFrontSignature(data, signature) {
      var hash = crypto.createHmac('sha1', apiSecret)
            .update(JSON.stringify(data))
            .digest('base64'); 
      return hash === signature;
  }
  </code></pre>