php - Asymetric and symetric key storage -


i'm working on ajax portal , need advice. client wants secure doesn't want deal ssl. there no ultra sensitive data store i'm doing custom "handshake" when page initializes.

since every session i'm dealing 2 new sets of asymetric key , symetric 1 well, want know how handle these keys. going reside on shared host , i've read everywhere session file can't trusted in case...

right i'm storing info in session file pointing right keys, in database. works fine (well, think :))... want delete keys database when user session ends, don't end tables filled useless keys.

even if knew bad, tried ajax call when closing window/browser... indeed bad , inconsistent, option out of way. thought cron job erase every key dating more couple of days, kind of feels "unfinished" me...

my question is: i'm wondering how ssl handles keys? stored while user session lasts? how deal/would deal this?

edit

yep, should have known question lead that.

i know ssl best option , own regret have coded application. i'll talk more client it, have little hopes. if still wants go http, won't risk loose contract proove point , i'll have alternative protect unsensitive data (login info kinda, no credit card...).

yes, "fairly secure" appropriate since no system secure. "fairly secure" means wannabe hacker downloaded wireshark, or watched video on youtube man in middle attack won't able in. lot better multi billions gaming companies been put shame teenagers.

the correct answer goes nasko answered part of question , made obvious recommendation, without being cocky @ that.

ssl generates symmetric key each handshake completes , stores in memory (unless session cache written disk).

that said, suggest avoid doing own crypto protocol, since bound make mistake. best crypto people make mistakes, wouldn't recommend doing sake of doing it.

figure out problems client perceives ssl , address those. way use standard technology proven work , customer happy @ end.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -