Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Created by PhpStorm.
- * User: scott
- * Date: 3/12/19
- * Time: 10:26 AM
- */
- $form_box_kp = sodium_crypto_box_keypair();
- $form_box_secretkey = sodium_crypto_box_secretkey($form_box_kp);
- $form_box_publickey = sodium_crypto_box_publickey($form_box_kp);
- echo $form_box_publickey;
- echo '<BR><BR>';
- echo $form_box_secretkey;
- echo '<BR><BR>';
- /*
- * http://php.net/manual/en/intro.sodium.php
- * https://paragonie.com/book/pecl-libsodium/read/05-publickey-crypto.md
- * http://php.net/manual/en/function.fwrite.php
- * https://stackoverflow.com/questions/39851767/write-binary-data-to-file-literally
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement