Update EncryptionUtil.cs

added proper exception catching