Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calculated text checksum is different from the header one #58

Open
ktKongTong opened this issue Dec 14, 2024 · 0 comments
Open

calculated text checksum is different from the header one #58

ktKongTong opened this issue Dec 14, 2024 · 0 comments

Comments

@ktKongTong
Copy link

thank you for your great work. I am working on building another AppInfo.vdf editor(web verision). The documentation has helped me a lot.

I parse an AppInfo object into a custom object.
when I serialize it into binary format, the calculated hash matches the binary checksum in header perfectly.

but when I serialize it into text format and hash it, most of the results are different from the hash field in the binary header.

To investigate, I debugged appinfo.py and found that it also has the same issue.

it's seem that replace \\ to \\\\ didn't solve all problems.

if __name__ == "__main__":
    appinfo = Appinfo('./appinfo.vdf')
    checksum = appinfo.update_app(10)
image
@ktKongTong ktKongTong changed the title calculated text checksum is different with the header one calculated text checksum is different from the header one Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant