Jump to content

I need help with encryption


xeonmaster

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.