In REBOL 3, it is possible to calculate the checksum of the SHA1 module. When REBOL loads the module, it compares a checksum with the checksum of the loaded module, and if they do not match, an error occurs, as follows: access error: invalid checksum (tampered file).
No matter how I try, I canโt create a module checksum that I like REBOL 3. When I look at the documentation for import, its clarification /checksays to use checksum/securefor mold/flat. I tried all kinds of options for this without any luck:
import / check% module.r checksum / secure to-binary mold / flat load / all% module.r
import / check% module.r checksum / secure to-binary mold / flat load% module.r
import / check% module.r checksum / secure to-binary mold / only / flat load / all% module.r
import / check% module.r checksum / secure to-binary mold / only / flat load% module.r
import / check% module.r checksum / secure read% module.r
etc. None of this works. There must be some simple thing that I am doing wrong.
source
share