daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest May 17th, 2018 210 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $data = json_decode('{"search_id":"QkToFW5hdMm2wgXVxx3CnPtr", "trip_id":"6568404916181815103", "customer":{"phone":"+79859731438", "email":"staltip@mail.ru", "name":"Лаврик Валерий"}, "booking":{"status":"booked"}, "passengers":[{"document_type":"passport", "document_number":"4611123123", "first_name":"Валерий", "second_name":"Васильевич", "last_name":"Лаврик", "gender":"M", "birthday":"1990-12-11", "citizenship":"RU", "insurance_id":"0", "insurance_cost":100, "seat_numbers":["18"]}]}');
  4.  
  5. $s_k = 'y2G7p9xGKXJDy4LhMz4tzn1Z';
  6.  
  7. $sha256 = hash('sha256', $s_k . json_encode((object)$data) . $s_k);
  8.        
  9. echo base64_encode($sha256);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top