Created
October 28, 2019 15:35
-
-
Save lamorbidamacchina/d8589cccdc1893f2a47e9e25adea7d0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Generating your encryption key | |
$private_key = random_bytes(SODIUM_CRYPTO_SECRETBOX_KEYBYTES); | |
// Generating your blind index key | |
$index_key = random_bytes(SODIUM_CRYPTO_PWHASH_SALTBYTES); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment