public void InitAesManager() { aesManager = new AesManager(); aesManager.InitKey(); EncryptedSymmetricKey = rsaManager.Encrypt(JsonConvert.SerializeObject(aesManager.Key), DevicePublicKey); }