Advertisement
smaction

Untitled

Mar 12th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: scott
  5.  * Date: 3/12/19
  6.  * Time: 10:26 AM
  7.  */
  8.  
  9.  
  10. $form_box_kp = sodium_crypto_box_keypair();
  11. $form_box_secretkey = sodium_crypto_box_secretkey($form_box_kp);
  12. $form_box_publickey = sodium_crypto_box_publickey($form_box_kp);
  13.  
  14. echo $form_box_publickey;
  15. echo '<BR><BR>';
  16. echo $form_box_secretkey;
  17. echo '<BR><BR>';
  18.  
  19.  
  20. /*
  21. * http://php.net/manual/en/intro.sodium.php
  22. * https://paragonie.com/book/pecl-libsodium/read/05-publickey-crypto.md
  23. * http://php.net/manual/en/function.fwrite.php
  24. * https://stackoverflow.com/questions/39851767/write-binary-data-to-file-literally
  25. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement