public static AesEncryptionHandler AesEncryptionWithCompression(this IEnvironmentConfiguration config) { return(string.IsNullOrEmpty(config.EncryptionKey()) ? null : new AesEncryptionHandler(Convert.FromBase64String(config.EncryptionKey()), true, config.EncryptionKeySize())); }