Jump to content

Newbie ish needing help with encryption


liam1412

Recommended Posts

Hi Poeple

 

Been looking around the web for a tutorial on encryption that isn't object orientated. 

 

I am fairly new to prgramming/php and as yet only know procedural.

 

I am building a local site that includes a recruitment section.

 

In this section I want users to be able to input details and also store a cv if required.

 

 

So

 

I want to know 2 things

 

1. How would I go about encrypting data into a db then e-mailing the recruiter to say you have had a job application. click here to view. When they click it will decrypt the data. (if they don't have a cv uploaded)

 

2.  Encrypt a file (the cv) and e-mail it securely direct to the recruiter. (if they have one uploaded)

 

Any help would be much appreciated.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/56345-newbie-ish-needing-help-with-encryption/
Share on other sites

Why would you want to encrypt stuff like that? Only passwords should really be encrypted and then you can just link them to a secure page that they would have to be logged on to see... That's what we do with our Recruiting website.

 

As far as encryption goes:

 

$variable_encrypted = sha1($variable);

I agree with the otehr guy. All I would do is encrpyt passwords and have a logon page to validate user . depending on the level of security you  want, you could use md5() or sha1() 

 

more info on encryption found here 

 

http://us2.php.net/manual/en/function.sha1.php

 

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.