Esempio n. 1
0
        public byte[] GetEncryptedPublicKey()
        {
            byte[] key  = MazeKey.getBytes();
            byte[] salt = PrivateSalt.getBytes();

            //also step 7 but here we encrypt it
            byte[] publicData = new byte[this.PublicKeyData.Length];
            Array.Copy(this.PublicKeyData, publicData, publicData.Length); //copy the public key data so the original will be still in memory

            GetWopEncryption().Encrypt(publicData, 0, publicData.Length);
            return(publicData);
        }
Esempio n. 2
0
 public WopEx GetWopEncryption()
 {
     byte[] key  = MazeKey.getBytes();
     byte[] salt = PrivateSalt.getBytes();
     return(GetWopEncryption(key, salt));
 }