Jump to content

trying to import a .csv file with usernames and passwords in sha-1


Recommended Posts

can someone give me some advice on how to import a csv file and make the passwords store in a hash form such as md5 or sha-1.    It would be to much to code the INSERT VALUES....way.  I am trying to find an easier way.  Is there a feature in one of these free gui versions of mySQL that will do this????

I got it but how do I read parts of the file at a time such as how do I get the usernames under one column and the passwords under the other so I can store them in two strings for looping.  this is what I have .........

<?php
$filename = "ad.csv";
$fp = fopen($filename, "r") or die("Couldn't open $filename");
while (!feof($fp)) {
$line = fgets($fp, 1024);////I know I need to modify this into something???
echo $line."<br/>";
}
?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.