LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   standalone htpasswd without apache (https://www.linuxquestions.org/questions/linux-software-2/standalone-htpasswd-without-apache-829960/)

entz 09-02-2010 10:43 AM

standalone htpasswd without apache
 
hi ,

i'm trying to find a standalone htpasswd that works from the terminal without having to install apache

where can i find something like that ?

doesn't linux have a default utility for encrypting unix-style passwd files ?

cheers

goldenbarb 09-02-2010 11:49 AM

Code:

#!/usr/bin/perl
use strict;
 
my $passWord=$ARGV[0];
print crypt($passWord,$passWord)."\n";

Found here.

entz 09-02-2010 12:56 PM

thanx ,

that's was quite easy ..lol

Suman yuvraj 08-17-2011 06:41 AM

$argv[0]
 
hi,
what does $ARGV[0] stores and how the following syntax will work

my $passWord=$ARGV[0];
print crypt($passWord,$passWord)."n";

thanx in advance


All times are GMT -5. The time now is 09:38 AM.