Skip to content

Tag: encryption

How to secure the id that are passed in a URL?

have a typical website that passed id values in the URL. ex. account.php?id=755 in the account.php page I do check the value But, I am trying to find away to encrypt the value 755 prior displaying it and then decode it prior checking the value. So I am not displaying the the actual id but a mask. My question …

How to check if PHP field is empty when using SHA1

I’m using SHA1 to encrypt a password. In my original code I checked if the password fields were empty with: if (empty($newpassword) and (empty($newpassword2))) { } Since I now use SHA1 and it automatically generates da39a3ee5e6b4b0d3255bfef95601890afd80709 when field is left blank, how do I re-write my …

PHP XOR Decryption

I have an encrypted parameter V coming from a web page like this: V is encrypted like above: MD5 : XOR : which gives something like: what I want here is the function to decrypt this ‘ecryptedXOR’ using the password, so that I can get the: here’s what I’ve done so far: http://pastebin.c…

Alternative to SSL – “Manual” Encryption? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year. Improve this question I would like to encrypt data that travels back and forth between the se…