Larry, Thanks for the suggestion. However, it appears that IHASH cannot help here. The Linux system uses DES (Data Encryption Standard) based encryption system using "salt" as a way of randomizing the resulting text that is one-way encrypted so that the encrypted text cannot be decrypted back to the original text.
Since it is something so prevalently used in the Internet for encrypting passwords, it would be very helpful to be able to replicate within R:Base. -- James ----- Original Message ----- From: Lawrence Lustig To: RBASE-L Mailing List Sent: Friday, January 07, 2011 10:45 PM Subject: [RBASE-L] - Re: crypt() Linux function in R:Base? For one way encryption of passwords in R:Base I use IHASH. It only returns 8 bytes so it's not super secure, but it's been good enough for my needs (which haven't included publicly-accessible web sites using this method). -- Larry ------------------------------------------------------------------------------ From: James W. Kim <[email protected]> To: RBASE-L Mailing List <[email protected]> Sent: Fri, January 7, 2011 10:31:45 PM Subject: [RBASE-L] - crypt() Linux function in R:Base? Hi, Does anyone know how to replicate the Linux crypt() function in R:Base? I use htaccess and htpasswd combination for the purpose of authenticating users to my web server. I have been using a web script for interactively adding a new user and deleting a user. However, it dawned on me that if I can somehow create the encrypted passwords from R:Base, I can basically create the htpasswd file and automatically upload the current list to my server and save a lot of time and effort. Any help would be appreciated. James Kim

