picass0 0 Light Poster

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.