Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Security & App Access
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Divers
Thread ID:
01417946
Message ID:
01417959
Vues:
35
>>I am working on an application where there are users and roles. The functionality allowed to a user will be determined by their role.
>>What's the best way to store user info, ie, UserName, Password? I will want it encrypted, but should all the user data be encrypted in the user table, or just the UserName & password?
>>
>>Second, assume I have a calendar module and a documents module (for document management). Some users will not have access to each module. What's the best way to set all this up in the data?
>>
>>Thanks
>
>
>Only a partial answer
>
>Do not store encrypted passwords in a table - they can be decrypted - and sometimes there is an indication of the length of the password

I don't know about that. I'm doing the encryption in my C# app using RijndaelSimple. The key is stored in the app. Unless the hacker knows the key, how would they be able to decrypt it?

>Instead hash a transformation of the password
>A transformation, eg
>- reverse the sequence
>- append/prepend some chars of the password so that the length > = 32

The only way this could work is if my app knew the characters that were being added, correct? Otherwise, how do you know where the user's password begins and the appended characters start?


>- encrypt with aes128 or aes 256 CBC with an IV, Key that is derived from the password
>
>
>hash: eg md5 or sha256
>
>That way (1) Never an indication of the length of the password (2) cannot be decrypted, (3) hash is always the same length and does not depend on the length of the password

So, assuming all the above, what I was considering was returning all user records, then in the app decrypt each username & password until I find a match - the user is then logged in.

Any issues here?

Also, wouldn't is be prudent to encrypt all the user, roles, and rights data?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform