Adding AesManaged helper code.
Fix: Can encrypt empty string.