Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Usuario
- {
- public Usuario()
- {
- Equipes = new List<Equipe>();
- }
- public int Id { get; set; }
- public string Login { get; set; }
- private string senha;
- public string GetSenha()
- {
- return senha;
- }
- public void SetSenha(string value)
- {
- byte[] salt = Encoding.UTF8.GetBytes(Login);
- senha = new System.Security.Cryptography.SHA256Managed().ComputeHash(Encoding.UTF8.GetBytes(value).Concat(salt).ToArray()).ToString();
- }
- public virtual ICollection<Equipe> Equipes { get; set; }
- }
Add Comment
Please, Sign In to add comment