Initial commit
This commit is contained in:
commit
48a5360d0d
22 changed files with 1687 additions and 0 deletions
10
genkey.php
Executable file
10
genkey.php
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
// Generate keypair
|
||||
$keyPair = sodium_crypto_sign_keypair();
|
||||
$privateKey = sodium_crypto_sign_secretkey($keyPair);
|
||||
$publicKey = sodium_crypto_sign_publickey($keyPair);
|
||||
|
||||
// Write keys to file
|
||||
file_put_contents('keys/private_key.bin', $privateKey);
|
||||
file_put_contents('keys/public_key.bin', $publicKey);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue