Exemple #1
0
 def test_crypto_auth(self):
     sk = pysodium.randombytes(pysodium.crypto_auth_KEYBYTES)
     tag = pysodium.crypto_auth("howdy", sk)
     pysodium.crypto_auth_verify(tag, "howdy", sk)
Exemple #2
0
 def test_crypto_auth(self):
     sk = pysodium.randombytes(pysodium.crypto_auth_KEYBYTES)
     tag = pysodium.crypto_auth("howdy", sk)
     pysodium.crypto_auth_verify(tag, "howdy", sk)