Initial commit

This commit is contained in:
Raphael Dannecker 2025-02-25 16:10:55 +01:00
commit 48a5360d0d
22 changed files with 1687 additions and 0 deletions

10
genkey.php Executable file
View 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);
?>