cbtshare has asked for the wisdom of the Perl Monks concerning the following question:
122SDfe$%"'\n,
it throws an error system qq {echo -e "$newpassword\n$newpassword" | passwd $username}; So this would be easier below:but how do I get it to always have a special character in the generated password? Thank youmy @alphanumeric = ('A'..'Z', '*', '!' ,':', '>', 0..9); my $randpassword = join '', map $alphanumeric[rand @alphanumeric], 0.. +13; print "$randpassword\n"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Selecting Password
by LanX (Saint) on Jan 31, 2020 at 00:38 UTC | |
by cbtshare (Monk) on Jan 31, 2020 at 02:54 UTC | |
by LanX (Saint) on Jan 31, 2020 at 09:43 UTC | |
|
Re: Selecting Password
by hippo (Archbishop) on Jan 31, 2020 at 09:49 UTC | |
|
Re: Selecting Password
by haukex (Archbishop) on Jan 31, 2020 at 16:27 UTC | |
by cbtshare (Monk) on Feb 01, 2020 at 05:51 UTC |