Jump to content

Characters


TapeGun007

Recommended Posts

I want to create a decoding tool.  To do this, I want to create a database with every character in the db, and each character would have up to 255 possibilities for each character.

 

The problem that I'm having is I want to automatically write each character into the database including special characters like single quotes, double quotes, and open parenthesis.

 

I thought about trying something like this:

$characters = Array( A,B,C,......);
 
foreach ($characters as $c){
  < pull the characters >
  < generate random code >
  < write to db >
}

But of course, certain characters like ")" cause a problem in an array.  I thought maybe I could do it by character string or something like that, but I can't seem to find any code examples of that.

 

Any suggestions?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/278906-characters/
Share on other sites

Use an encryption class in PHP. You are trying to reinvent the wheel and make it square instead of round (not nearly as good). I respect that you are trying to write this on your own, but encryption algorythms are really complex.

 

Besides, you want to create a database from every character in the database? For one, there will only be encrypted characters in your database, so you dont want to target the characters in the database but those you are receiving from the front end. In the end, you can always run a replace from every know character (which are quite a few) and it would be a breeze to break if anyone really wanted to.

Link to comment
https://forums.phpfreaks.com/topic/278906-characters/#findComment-1434710
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.