Replace AESManager by AesCryptoServiceProvider.