WeBWorK Main Forum

Password crypt command doesn't work

Password crypt command doesn't work

by Lars Jensen -
Number of replies: 1

Hi everyone,

We're having problems importing students. Class lists must have encrypted passwords, it seems, so we're using the password crypt command for classlist files listed here:

http://webwork.maa.org/wiki/Classlist_Files#Format_of_classlist_files

The command is:


perl -pe '@a=split",";$a[9]and$a[9]=crypt($a[9],join"",(".","/",0..9,"A".."Z","a".."z")[rand 64,rand 64]);$_=join",",@a' < plaintext.lst > crypted.lst

But it doesn't work right... When I run it, it concatenates all records into a single long record.

Any ideas how it should be changed?

We use perl 5.10.0

Lars.

In reply to Lars Jensen

Re: Password crypt command doesn't work

by Lars Jensen -
Hi All,

Sorry, my error, please ignore my original message. Everything works fine: I left the permissions column empty, and that caused my errors.

Lars.