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

    Parameters

    • params: DecryptFromJsonProps

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

    Returns Promise<ReturnType<typeof decryptToFile> | ReturnType<typeof decryptToString>>

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