Example #1
0
        public static RevampedKeyPair GenerateKeyPair()
        {
            byte[] PublicKey = new Byte[GetPublicKeyBytesLength()];
            byte[] SecretKey = new Byte[GetSecretKeyBytesLength()];

            SodiumPublicKeyBoxLibrary.crypto_box_keypair(PublicKey, SecretKey);

            RevampedKeyPair MyKeyPair = new RevampedKeyPair(PublicKey, SecretKey);

            return(MyKeyPair);
        }