I am running PERL on VMS operating system. I have created a .htaccess and .htpasswd file in the directory that contains pages on my intranet site which i would like to be password protected. So when i try to access one of these pages i am propmpted for a password.
The .htpasswd file stores usernames and passwords in the form of USERNAME:CRYPTED_PASSWORD. I have written a script in PERL to add a username and password to the .htpasswd file. The script itself works fine and does add a user and password but the crypted password it returns is in BINARY rather than ASCII.
I believe the reason for this is that because i am running PERL on VMS the script uses VMS's way of crypting rather than PERL's CRYPT() function.
Is there anyway of forcing it to use PERL's CRYPT() function as opposed to VMS's way of crypting?
I have no idea how i can correct this problem, please help, any help would be greatly appreciated.
Thank you.