• Decrypt & return a previously encrypted string (as a string) or file (as a Uint8Array) using the metadata included in the parsed JSON data

    Returns

    • The decrypted string or file (as a Uint8Array) depending on dataType property in the parsed JSON provided

    Type Parameters

    Parameters

    • params: T

      { DecryptFromJsonProps } - The params required to decrypt a parsed JSON blob containing appropriate metadata

    Returns Promise<T extends {
        parsedJsonData: {
            dataType: "file";
        };
    } ? ReturnType<typeof decryptToFile> : T extends {
        parsedJsonData: {
            dataType: "string";
        };
    } ? ReturnType<typeof decryptToString> : never>

Generated using TypeDoc