[Lazarus] delphi - virus

dmitry boyarintsev skalogryz.lists at gmail.com
Tue Aug 25 09:48:45 CEST 2009


>
> Without knowing to much about the compiler internals... Wouldn't a SHA1
> be a better option than CRC?  For example, Git uses SHA1's to
> cryptographically ensure that no revision in the repository has been
> tampered with. Just a single byte change generates a completely
> different SHA1.
isn't SHA1 slow?

i'd suggest to use doubled checksum.
There's Adler checksum (used for gzip), It's as simple as CRC (and
unsafe in the same way)

But if both CRC and Adler are used, it's quite hard to change the
content not to violate the one of the sums.

thanks,
dmitry




More information about the Lazarus mailing list