prysm1 Posted December 1, 2021 Share Posted December 1, 2021 Hi all anybody know of or has written a utility that can calculate the hash of files on the atari? regards prsym1 Quote Link to comment Share on other sites More sharing options...
Wrathchild Posted December 1, 2021 Share Posted December 1, 2021 you mean natively? a quick search shows https://github.com/laubzega/md5_6502 https://github.com/hobnobber/cc65sha1 https://github.com/hobnobber/cc65sha256 https://gitlab.com/aaron-baugher/6502-assembly-language-programming/-/blob/master/sha256.a Quote Link to comment Share on other sites More sharing options...
prysm1 Posted December 1, 2021 Author Share Posted December 1, 2021 yup natively. the once from hobnobber's github seems to be what i need. thanks Quote Link to comment Share on other sites More sharing options...
+DrVenkman Posted December 1, 2021 Share Posted December 1, 2021 If you’re planning to do serious crypto work with an A8, better be patient. (Or alternately, do it in Altirra in turbo mode). 1 1 Quote Link to comment Share on other sites More sharing options...
tebe Posted December 1, 2021 Share Posted December 1, 2021 https://github.com/tebe6502/Mad-Pascal/blob/master/lib/md5.pas https://github.com/tebe6502/Mad-Pascal/blob/master/samples/a8/bench/md5_bench.pas 1 Quote Link to comment Share on other sites More sharing options...
Rybags Posted December 1, 2021 Share Posted December 1, 2021 For file verification it's probably overkill - even CRC32 is way more than we'd need. Quote Link to comment Share on other sites More sharing options...
drac030 Posted December 2, 2021 Share Posted December 2, 2021 (edited) Quote Speed-optimized MD5 hashing for MOS6502. Just as the title says. I tried to strike a balance between code size and performance, which resulted in around 2KB of code and around 1750 bytes/s when hashing on a Commodore 64. MD5.COM to be found on SDX Toolkit collection hashes 25040 bytes (the first file I grabbed as an example) in 6.94 sec (8.38 including loading from HDD), which gives about 3600 bytes/s. Sure, Atari is faster, but not twice as fast Edited December 2, 2021 by drac030 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.