(no title)
hn_p4ttern | 1 year ago
a) is still code
b) is still code AND is code similar to a previous commit
c) is still code AND is code similar to a previous commit AND is valid
d) is still code AND is code similar to a previous commit AND is valid AND makes sense for something
OR at least
a) is still code
b) is still code AND is valid
d) is still code AND is valid AND makes sense for something
Let me know.
pornel|1 year ago
In case of MD5, there is now a collision I wouldn't expect was possible: in readable ASCII.
https://mastodon.social/@Ange/112124123552605003
hn_p4ttern|1 year ago
Your opinion: prove it! And Again, if you instead of trolling actually read the post in THIS BRANCH , the question is: shout SHA-1 inn GIT be substituted ?
jacobgorm|1 year ago
cyph3r0|1 year ago
This is bullshit. Really. If you have only to "name a a commit" you can use a sequence from 0 to N. Why someone should waste computation power to calculate an hash that's also a naming system really not user friendly? Think about it.
The correct answer is to signing the commit AND for database indexing: "Git uses hashes in two important ways.
When you commit a file into your repository, Git calculates and remembers the hash of the contents of the file. When you later retrieve the file, Git can verify that the hash of the data being retrieved exactly matches the hash that was computed when it was stored. In this fashion, the hash serves as an integrity checksum, ensuring that the data has not been corrupted or altered.
For example, if somebody were to hack the DVCS repository such that the contents of file2.txt were changed to “Fred”, retrieval of that file would cause an error because the software would detect that the SHA-1 digest for “Fred” is not 63ae94dae606…
Git also uses hash digests as database keys for looking up files and data.
If you ask Git for the contents of file2.txt, it will first look up its previously computed digest for the contents of that file[45], which is 63ae94dae606… Then it looks in the repository for the data associated with that value and returns “Erik” as the result. (For the moment, you should try to ignore the fact that we just used a 40 character hex string as the database key for four characters of data.)"
Source: https://ericsink.com/vcbe/html/cryptographic_hashes.html#:~:.... ~
Rygian|1 year ago
hn_p4ttern|1 year ago
Please, correct me if I'm wrong.
keybored|1 year ago
hn_p4ttern|1 year ago
Yes, Exactly. So, is it necessary to change SHA-1 having in git ? At the moment, I think there is no reason because SHA-1 doesn't expose security vulnerabilities or functional issues.
IncreasePosts|1 year ago
dist-epoch|1 year ago
So you can just alter the formatting to a different convention, alter spacing, add a comment, reorder equivalent lines.
So you can insert a comment and continue altering it until you get a match by varying the line breaking, switching words with synonyms.
chasil|1 year ago
unknown|1 year ago
[deleted]