ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: JakobDev on Jul 28, 2020, 01:51 PM

Title: How to create checksum of tarfile?
Post by: JakobDev on Jul 28, 2020, 01:51 PM
I'm working in a lib for raeding and writing tar files. You can find the source here (https://gitlab.com/JakobDev/Computercraft/-/blob/master/Modules/tarlib.lua). The only problem, is that I don't know how to create the checksum for the header record (https://en.wikipedia.org/wiki/Tar_(computing)#Header). The other things are working. Does anybody know that?
Title: How to create checksum of tarfile?
Post by: Lupus590 on Jul 28, 2020, 06:04 PM
I would look at how another (open source) implementation does this or look for the file format specification.