Skip to content
Advertisement

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 is

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 code? Translate da39a3ee5e6b4b0d3255bfef95601890afd80709 back to string? Or something else? Please help. Answer What you

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.com/D9mzx82Q Answer You can XOR by the same

Where should I store an encryption key for php?

I’m writing a php application that accepts sensitive customer data, and so I need to encrypt it before storing it in a mysql database. I’m going to use mysql’s built-in AES functionality to do column-level encryption. I want to avoid storing the encryption key on the server, and so i’m going to provide a web-page for an administrator to log-in,

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 server and client in my Web application. I would

Advertisement