CVS passwords

From ويكي عربآيز
Revision as of 10:54, 21 October 2006 by Alnokta (talk | contribs) (Cvs passwords moved to CVS passwords: Using capital form, it is an abbreviation...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CVS Passwords

Unfortunately, CVS does not have a built-in way to create or change passwords. That is why when you first register with Arabeyes, we use the same password you registered through the web for your CVS account.

However, once you change your web password, it no longer affects your CVS account password. In several instances people either forget or wish to change their CVS passwords.

Here is a simple Perl script that you may want to use, call it 'cryptout.pl':


#!/usr/bin/perl
 
srand (time());
my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))";
my $salt = sprintf ("%c%c", eval $randletter, eval $randletter);
my $plaintext = shift;
my $crypttext = crypt ($plaintext, $salt);
 
print "${crypttext}\n";


And then run it as follows:


$ ./cryptout.pl "mypassword"

This will give you an encrypted version of your password. Email that to the CVS Administrator privately when it is requested from you.