M
Magnus Warker
What is your database key?
If it's 1, 2, 3, 4, ... then encrypting it will simply reveal your
encryption key.
It's an incrementing integer. What's the reason for revealing the key?
Is it the shortness of the number or is it the fact, that the number
increments?
If it's the shortness, what about padding?
If characters aren't efficient for your keys, simply use
a translation table between the random and sequential values. Use the
randomized value as a database key on all traffic leaving and entering
your server. It prevents the public from guessing new database keys.
create table urlparams
{
param char(16) primary key,
id integer unique not null references main_table (id)
}
-- param is the outside database key made of random characters
-- id is the local primary key
Ok thanks...
Magnus