This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Mandrake Fernflower's profile picture

[Request] Crc And/or Sha1 Api

Started by Mandrake Fernflower, 20 February 2012 - 03:46 PM
Mandrake Fernflower #1
Posted 20 February 2012 - 04:46 PM
Hello. I am a bit interested in security methods. I see that most methods can be broken with a small bootfloppy kernel. I could use Base64 or Rot47 but they are to insecure. I was wondering if somone can make a API that can generate the CRC and/or SHA1 checksum. (Of a file) Thanks.

SOVLED! Thanks to tomass1996
Advert #2
Posted 20 February 2012 - 04:59 PM
I don't see how this would help you; I recommend reading this thread: http://www.computercraft.info/forums2/index.php?/topic/103-stop-disk-booting/

A few posts down, I post some code that allows you to call shell.setDiskBootPassword("string"), that will ask for a password when booting from the disk.
MewK #3
Posted 20 February 2012 - 08:39 PM
I think I'll try to implement a pure LUA CRC-lib. I need something for error checking anyway for my ftp-like protocol. But don't hold your breath, it will take a week!
Espen #4
Posted 20 February 2012 - 10:09 PM
Hello. I am a bit interested in security methods. I see that most methods can be broken with a small bootfloppy kernel. I could use Base64 or Rot47 but they are to insecure. I was wondering if somone can make a API that can generate the CRC and/or SHA1 checksum. (Of a file) Thanks.
A while ago tomass1996 has made an API with all of your requested functions and more.
Take a look (in the first spoiler, then near the bottom): http://www.computercraft.info/forums2/index.php?/topic/42-string-utils-api
Mandrake Fernflower #5
Posted 20 February 2012 - 10:37 PM
Ahh I see Thanks ;)/>/>

But now I feel silly