-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi ArteMisc.
First of all, I am very thankful and feel gratitude to your contribution for developer community.
I am a Korean golang developer who want to start a project for php-laravel frontend and Golang backend.
Since this is a mission-critical project, I want to make sure that godium has successful example code as following:
php-sodium code : encrytion
============ php code =========
$keyPair = sodium_crypto_box_keypair();
$publicKey = sodium_crypto_box_publickey($keyPair);
$secretKey = sodium_crypto_box_secretkey($keyPair);
//from client generate encrypt key
$msg = 'database config';
$encrypted = sodium_crypto_box_seal($msg, $publicKey);
$decrypted = sodium_crypto_box_seal_open($encrypted, $keyPair)
=============================
decryption using the keyPair in godium.
Pls let me know if you have example golang code of decryption for me to prove it successfully decrypted in cross-languages
Otherwise a minor hint and page link will be a big help for me to solve this problem.
I want to pay your effort or help for your kindness in any other way.
hope the message can reach you soon and get some feedback.
have a good day.