testAes.php 625 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. require "autoload.php";
  4. use \Fastknife\Utils\AesUtils;
  5. $key = "oc7ygju8xf03ov4ttd5ito7qnuapyp6s";
  6. $point = [
  7. ['x' => 135, 'y' => 58],
  8. ['x' => 82, 'y' => 72],
  9. ['x' => 56, 'y' => 112]
  10. ];
  11. $point = json_encode($point);
  12. //[{"x":135,"y":58},{"x":82,"y":72},{"x":56,"y":112}]
  13. //var_dump();
  14. //print_r(AesUtils::encrypt($point,$key));
  15. //php w2GGF3+0q0K0AdTysBEKynRo9hXBbXBPUZU1GPWJKlM4SwtrbmV17CFcTq/T53Kvlk0FWSbFzfCC1NuAA6wsmw==
  16. //js FOl3kz52f4xptJ/Zf7MoZYQmYa7C1pjQaWP8QqhcX8FH43SvpCBPhaSqqMbE8D55ufhgjBVor01UZRH3uE6DNw==
  17. //js +5s4V1MeDYk1jpvfwJACJA==
  18. //php C01B0oArq8aMhlMmSdRbDA==