Computing Home Page > Computing Home Page >

Encryption of Gnats & CVS passwords
Gnats & CVS use insecure passwords, DO NOT use passwords with another meaning. If you don't know what the standard password scheme, ask Paul Armor.

To generate an encrypted password, enter your desired password in the text box below and press the "Encrypt" button. The encrypted password will be displayed below the password you entered.

Plaintext Password:
Encrypted Password:

Or if you prefer, here is a program encrypt.c to encrypt a password:

#define _XOPEN_SOURCE
#include <stdio.h>
#include <unistd.h>
int main( int argc, char *argv[] )
{
  if ( argc != 3 )
    return fprintf( stderr, "Usage: %s passwd salt\n", *argv ), 1;
  return puts( crypt( argv[1], argv[2] ) );
}
compile it with (on GNU/Linux):
gcc -o encrypt encrypt.c -lcrypt
An example:
./encrypt '$hello$' xx
results in
xxhjsFIMF7SA2
which is the encryptd version of the password $hello$ with salt (a two-letter string) xx. Here is an encrypt executable that should work on ix86.

Page created on: Wed Jun 20 2007, 16:52:00 by Gregory Skelton
Contact: nemo-devel@gravity.phys.uwm.edu