Displaying 3 results from an estimated 3 matches for "updatesth".
Did you mean:
updates
2016 May 01
2
Changing Password Schemes
...type:host=$dbhost;database=$dbname", $dbuser, $dbpass)
or die "Could not connect to database: " . $DBI::errstr . "\n";
my $selectsth = $dbh->prepare('SELECT localpart, domain, plain_pass FROM mailuser where crypt_pass IS NULL OR crypt_pass=""');
my $updatesth = $dbh->prepare('UPDATE mailuser SET crypt_pass=? where localpart=? and domain=?');
$selectsth->execute;
while (my $row = $selectsth->fetchrow_hashref) {
open my $urand, '<', '/dev/urandom';
read $urand, my $salt, 12;
close $urand;
$salt = encode_...
2016 May 01
3
Changing Password Schemes
...;> $dbuser, $dbpass)
>> or die "Could not connect to database: " . $DBI::errstr . "\n";
>> my $selectsth = $dbh->prepare('SELECT localpart, domain, plain_pass FROM
>> mailuser where crypt_pass IS NULL OR crypt_pass=""');
>> my $updatesth = $dbh->prepare('UPDATE mailuser SET crypt_pass=? where
>> localpart=? and domain=?');
>> $selectsth->execute;
>> while (my $row = $selectsth->fetchrow_hashref) {
>> open my $urand, '<', '/dev/urandom';
>> read $urand, my $sa...
2016 Apr 30
2
Changing Password Schemes
This looks good, except it is truncated, it should be something like
95chars long, Is your hash column set to 128 or up around there or
larger?
Quoting Carl A Jeptha <cajeptha at gmail.com>:
> Sorry for double reply, but this what a password looks like in the
> "hashed" password column:
> {SHA512-CRYPT}$6$wEn1UFuiMzl9OSjd$Vh/PZ95WDID1GwI2
>
> ------------