954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Php code for cryptology

Hi everyone
I know that some people at this site getting nervous about program request or code request for any reason but i have to did it to friday.I have no php knowledge except making php forum with macromedia dreamviewer .I have to write or find a php code that makes random table like
1 8
2 7
h x

by using this table i have to get some string input and replace 1 with 8 2 with 7 and h with x etc... if they are in my input string.

This program have to create table with only one 2 in left places and one 2 in the right place of table ,also these table has to have all letter from english alphabet + 0,1,2,3,4,5,6,7,8,9 numbers.

If somebody help me for writing this code or if somebody already have it or have code like that , i will be very grateful for that...
If i have to do it in a 2 weeks i can do it only myself but i have only 3 days to deadline.

Have a nice day...

Roc
Newbie Poster
6 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Does not look trivial. May be you need to contact a freelancer.

ithelp
Nearly a Posting Maven
Banned
2,230 posts since May 2006
Reputation Points: 769
Solved Threads: 128
 

so you want it to make this random table every time the php is ran ? this would make anything stored completely irritrievable ?

Fungus1487
Posting Pro in Training
459 posts since Apr 2007
Reputation Points: 66
Solved Threads: 56
 

It is quite trival but I not keen on doing peoples coursework for them because they don't learn anything from it but!
[code]

function encode()
{
$master_array = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',1,2,3,4,5,6,7,8,9,0);

//Initalise the return array
$ecode_array=array();
//Create a copy of the master array
$delete_array = $master_array;

//Loop through the master array
for($i=0;$i

UrbanSky
Light Poster
42 posts since Oct 2006
Reputation Points: 10
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You