karan / Projects

:page_with_curl: A list of practical projects that anyone can solve in any programming language.
https://twitter.com/karangoel
MIT License
45.06k stars 10.57k forks source link

file Hash calculator #112

Open derekriemer opened 7 years ago

derekriemer commented 7 years ago

Write an application, which takes in a file name, and a hashing type, I.E. md5, sha1, sha2, crc, bcript, ... and gives you the hash of the given file as a hex string. For added complexity, take in a GPG key, or a link to one, and verify that the signature on a file is that of the given key.

AzaubaevViktor commented 7 years ago

Use hashlib, Luke!

derekriemer commented 7 years ago

yes, of course. I'm not advocating asking beginners to write cripto libs, which is downright dangerous. I wouldn't attempt writing a cripto lib if my boss asked me to, because i'm simply not qualified.

sbelidhe commented 6 years ago

one can use sphlib to implement file hashing in java. For algorithms like (MD2 , MD5 , SHA-1 , SHA-256 , SHA-512 , SHA-384 ) one can refer to FileHashing file written in java for reference