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