bench-php5_2.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env php
  2. <?php /* -*- coding: utf-8; indent-tabs-mode: t; tab-width: 4 -*-
  3. vim: ts=4 noet ai */
  4. require dirname (__FILE__) . '/SHA3.php';
  5. // 1024 bytes
  6. $DATA = '
  7. 4v9WYVupNPLoX6SLlFaBbmKrcxnf5tHcln6UT1V5O/wqdjLsue1w80yuCsqs/vmtWoHRVFLE7pzu
  8. iyeWOhXJ5EFLq2AazMwENB2KsliR94XZhX15tGIVduC4M2Dp+grh76hIHYqxCC0KK52YzF2JKVI9
  9. EP1G5wTRCDSPRttk5nadineOevtXgh6hZMionuqkCaAasRpNCdOU6kxBLXeA4wKBAbUpR9HEC7YU
  10. xo0REqD018D+CZlBJVZq2Gb241T84gnxbXwfrOzgjc9+J+AZzj5W1PJct+AulNdA+wDkG0PnQg0R
  11. 2DYRqk46S6l3vJ5Y4e/ind8f8rXKpXtSqllkxgxigrqvTvTBxRBTAjoJIPjc0GekNJc1++Zsvdp0
  12. llYK0O8l5YrhHZWJfRWImR/J2GCfifxFZ79RR9BBt9zdy12ni5uk4xLOE/tSNlqK1LRu65UUL7xa
  13. lDLWD82SSxTeSN5INEXoMJ4S8TwMpNNSaUy39A7qj0jNcKoum4+9snEP7YttIdM7u54gVsW1qoIj
  14. eej07gVATWFj/amJdLCodv7aMvxG/MTTc2DSfRJTCa8Z4w4cW1yT9rXPT0jCO2nitq0eIVUd4xg0
  15. toZnY5tonoGlVVG38pXSuGV21ocr0BjTiQweZJ5x2OdiABN5sdvqrbwBV0VkK/gMLxPnFIMMM94G
  16. oRLvcEXlvNLdKlxmgWMmDgi7O34yUpns3fGI9kUMhfo9GoSlqpguzHhPQh+hrrnVLQEjJCkNTbm9
  17. R6DUX/JUW/pyQ9th3sHNiQUWJ+PWTby2Fj8f9FFQvlWY9FTvnbaEUe5GPeHLLwoEl37wdJZCEdIQ
  18. IwMXRm54d3gxjS38UsO4CFat0jXzeDYrrM591uxFVOe1U6I/RzQhLU2jtN68nd3OCtnpB/ZkyR1Y
  19. n/E+GnDxyN3z1rEm62SrI1t44PoJYm/QDU/V82oPHJwXFsU9/3YipmRQvSyobz5RnXJuJxlQd2Lx
  20. fEbnE5USoxAeO+HE4Jsy+ZTlw2ctVlwNGQ3ztALgsLtpWUEIw9ZLgYlx2qYsUVNGukgpedBhgMvQ
  21. VP9YB51kld4GMt913otcMg99mbSj8JUYbtC6O3o3i9qg98unFqEFDlOrnogTlb5ymn9J00xv2qp7
  22. 9d2naSlRIkiIIiSwmprfjXT0kHUEva/hmZHtXBuOwQGbN7Z9PJor2LdV9C/7ah+xspNRpc/5lrdf
  23. kF6HRUL7DlKQf3p1icoesdP/b2owW1NorvOW4Nbpx9/uQ0aO6ghPxnopFALkyBt78oqnSNS3Wk/+
  24. +6ChZqqnmOJEhiMWo+3vEiJ30xFsap4CDdgVbWytjGQiw1INKRqItWfwWTEnmyVou3hHWMurOQ==
  25. ';
  26. $sponge = SHA3::init (SHA3::SHA3_512);
  27. $sponge->absorb (base64_decode ($DATA));
  28. $hash = $sponge->squeeze ();
  29. echo bin2hex ($hash);
  30. echo PHP_EOL;