i need to hash and generate a salt value of the password which input by user and save it to a file. i understand how to create a txt file, but i don understand how m i going to hash and generate a salt value from the user input?
this will be an example of the generate password of the txt file
Username1:password1
Username2:password2