xeonmaster Posted February 5, 2007 Share Posted February 5, 2007 Hello to all I'm having a really really hard time trying to make a script that will take a file on one of my servers, encrypt it with DES 64bit blocks using a secret. And then relocate that file to another server. It is absolutely crucial that I get this done, I just need some help on how to do it. I've got a basic script that will encrypt, but I'm not sure if this will do the job that I need it to do. PLEASE HELP ME!!!! <?php $key = "Hello123"; $input = "filename.fileextension"; $encrypted = mcrypt_mode_ecb(MCRYPT_DES, $key, $input, MCRYPT_ENCRYPT); ?> If anyone could add to this or help me out in the right direction, I'd appreciate it tremendously. -Chris Link to comment https://forums.phpfreaks.com/topic/37090-i-need-help-with-encryption/ Share on other sites More sharing options...
btherl Posted February 5, 2007 Share Posted February 5, 2007 I think mcrypt_mode_ecb is a constant rather than a function. Have you written other php scripts before? Having an idea of your level of php knowledge will help us to help you better. Link to comment https://forums.phpfreaks.com/topic/37090-i-need-help-with-encryption/#findComment-177147 Share on other sites More sharing options...
xeonmaster Posted February 5, 2007 Author Share Posted February 5, 2007 Yeah, I've written some, mostly dealing with SQL statements and data manipulation like that. I'd say I'm still in the beginning stages. Link to comment https://forums.phpfreaks.com/topic/37090-i-need-help-with-encryption/#findComment-177148 Share on other sites More sharing options...
xeonmaster Posted February 5, 2007 Author Share Posted February 5, 2007 Is it possible to use the crypt() with64bit DES and a key? If it is, how would that function look? Link to comment https://forums.phpfreaks.com/topic/37090-i-need-help-with-encryption/#findComment-177149 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.