I have a SHA-1 encrypted Social Security number linked to a person stored in my database.
When I create a search page based on entering the actual Social Security number I fail to get a match because the value sent in the Get form is not encrypted.
How do I encrypt the inputted value before the search is posted.
The current code for the search page is as follows:-
<input id="ni_number" name="ni_number" type="text" value="<?php echo((isset($_GET["ni_number"])?$_GET["ni_number"]:"")); ?>" class="formTextfield_Medium" tabindex="1" title="Please enter a value.">
I know I have to use SHA1 (im using PHP) to encrypt the entered value but how & where?