I'm writing a basic version control system using Java, and I'd like to know how I can check for file changes outside my program. I've currently worked out that I should generate SHA-1 or MD5 Hashes for the file and then compare them, but I have no idea how to save the SHA-1 so that I can compare it next time I run the program.
The program works as follows;
java myProgram add FILENAME (only works if file has changed. Otherwise does nothing)
I have a php app that uses for user authentication md5 salted passwords.
The thing is that after I downloaded and setup the app (php/html files, mysql, changed the db credentials at the relative php file) on my localhost I can't login with the very same credentials on the db (same md5 hash and salt).
Is there any possibility that differences in the system architecture make the php login scripts decrypt differently the same password that is stored on the db?
Generally I want to understand and learn how to handle md5 hashing and salting, nothing like decrypting/hacking, just system administration understanding on how I can transfer apps & db's to other systems and the standard encryption/decryption still work.
I know how to generate an MD5 Hash for a single string,
But what if I want to generate it like this:
String hash1 = GenHash(username:realm:password);
where the username and realm is fixed, the password is read from a text file which contain many words, and I want each of the words convert into md5 hash...
How can I do this ?
What is better with
salt for password storeing?
$hash = md5($password . $salt);
$hash = password_hash($passwod, PASSWORD_DEFAULT, $salt);
$result = sha1($salt.$string);
How To change MD5 Hash of file in C# with progress bar? Code need change any file type(jpg, mp4)