We need PHP web pages and database that implement this requirmnets:
Algorithm which divides the whole database into groups (subsets) on the basis of mediam accured letter in the whole table. we generate a letter occurrence table (LOT), which shows the occurrence of each letter in the data.
The median occured letter is calculated from the table. this median occured letter is used as group separator to divide the whole data into groups.
Then the most occured letters i.e 1st, 2nd, 3rd, 4th and 5th MOLT (Most Occurred Letters Table) in each group.
A secret key is generated using these groups MOLT. this key is saved in other database, along with date and time stamp.
If suspicious database need to be tested for attacks so we will make exctration depend the generated key.