Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize | SQLize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $secret_key = '9fff8c602b08b00323567be0001480f6'; $data = "{\"order_id\": \"FACTPRECHR152632\", \"amount\": \"8300.00\"}"; $str = $data . $secret_key; $result = hash('sha1', $str); echo $result . PHP_EOL; echo hash('sha1', "{\"order_id\": \"FACTPRECHR152632\", \"amount\": \"8300.00\"}".'9fff8c602b08b00323567be0001480f6') . PHP_EOL; echo 'cbfb21630cd585f59c3a50fc3365d8c26b97cd4e';
Copy Clear