I searched some time ago, but found nothing about how to encrypt a password save to identify at a PHP-Skript.
I would love to use PGP but don't know how to implement it neither in PB nor in PHP. I found some snippets or something similiar in this board, but abandoned 'cause I don't know if PHP supports PGP.
So now I'm using a easy crypt-algo created by myself (don't have the source at the moment):
Client:
Code: Select all
Password input by user
a=MD5-hash(input)
get current IP from a php-skript on my server (stored in 'ip')
b=MD5-hash(a+ip)
send b to server-skript
Code: Select all
Get Pw from Database (only MD5-Hash) -> s_a
get current client-ip -> ip
s_b = MD5(s_a+ip)
compare b and s_b
I wanted to ask: How does the SmartUpdater work? How does this tool verify its identity at the moment of downloading after the login? Sessions?
Has anyone a proposal, how to do it better?
It's not sooo important because it's only a private developement but I think, I should try to make it as save as it can be.
thanks, Vielen Dank, muchas gracias,...
P.S.: Please correct wrong english or wrong orthography per private message