--- /dev/null
+# $Id$
+
+use Digest::SHA qw(sha256 sha256_hex);
+require Term::ReadKey;
+
+if(@ARGV < 1) {
+ print "Pass me username\n";
+ exit 1
+}
+
+print "Password: ";
+
+Term::ReadKey::ReadMode("noecho");
+
+my $password = Term::ReadKey::ReadLine(0);
+
+print "\n";
+print "Verify Password: ";
+
+my $verify = Term::ReadKey::ReadLine(0);
+
+print "\n";
+
+if ($password eq $verify) {
+ my $digest = sha256_hex($password);
+
+ print "$ARGV[0]:$digest\n";
+} else {
+ print "Unmatched\n";
+ exit 1
+}
+
+Term::ReadKey::ReadMode("restore");