Table of Contents

Method TryDecrypt

Namespace
Oscova.Agents.Secrets
Assembly
Oscova.Agents.dll

TryDecrypt(string, string, string, IContentProtector, out string, string)

Attempts to decrypt an encrypted-file payload, leaving raw content unchanged on failure.

public static bool TryDecrypt(string userId, string path, string content, IContentProtector protector, out string plaintext, string purpose = "encrypted-file")

Parameters

userId string
path string
content string
protector IContentProtector
plaintext string
purpose string

Returns

bool