Re: Hidden Application Data
- From: sternr <SternR@xxxxxxxxx>
- Date: Sat, 22 Mar 2008 14:12:28 -0700 (PDT)
Hey guys thanks for your answers!
My prodcut is a psuedo anti-virus application.
I need to save my user's credentials on the computer to be able to
connect to the server and check for license validity and new updates.
The reason I want to hide the user's credentials is not from the user
(although it does help prevent piracy...),
But for malicious programs who'd try to delete\modify this file and
thus disabling my product.
Any suggestions?
Thanks again!
--sternr
On Mar 22, 9:00 pm, rossum <rossu...@xxxxxxxxxxxx> wrote:
On Sat, 22 Mar 2008 11:28:42 -0700 (PDT), sternr <Ste...@xxxxxxxxx>
wrote:
Hey,
I have a commercial application, that needs to store the user's id and
password on the local machine, and we'd like to hide it from our users
(to prevent frauds etc.).
How can I store my application's data in a hidden way?
And don't tell me the obvious solutions: hidden file, registry key
etc. - isn't there a more reliable\hidden way?
Thanks ahead
--sternr
If you must keep things locally then do not store the
username/password but instead store a cryptographic hash of the
username/password. For extra security use some random salt as well.
For a new application you should use SHA-256 as the hash. For
cryptographic salt seehttp://en.wikipedia.org/wiki/Salt_(cryptography).
When the user enters their username and password calculate:
hash = SHA-256(username || password || salt) (|| = concatenate)
Store the hash and random salt locally. When the user next enters
their password repeat the calculation and compare the hash values. If
there is a mismatch then do not allow the user access. Each user
should have their own different salt.
Cryptographic hashes are designed so that it is not possible to run
them backwards and deduce the original text from the hash value. The
salt is to make dictionary attacks more difficult.
rossum
.
- Follow-Ups:
- Re: Hidden Application Data
- From: Lasse Vågsæther Karlsen
- Re: Hidden Application Data
- References:
- Hidden Application Data
- From: sternr
- Re: Hidden Application Data
- From: rossum
- Hidden Application Data
- Prev by Date: shopping cart & ecommerce
- Next by Date: Re: Hidden Application Data
- Previous by thread: Re: Hidden Application Data
- Next by thread: Re: Hidden Application Data
- Index(es):
Relevant Pages
|