A StrongLoop for Asp.Net Core
See more in Documentation
pt-bt.json
{
"hello_world": "Olá Mundo"
}
L.T("hello_world"); //Olá Mundo
public class User
{
string Login { get; set; }
Secure Password { get; set; }
}
$ user.Login = "allan";
$ user.Password = PBKDF2.Encrypt("allan");
$ user.Password == "allan"; // true
$ user.Password == "bllan"; // false
$ user.Password.Hash = "dsadasdas" //ERROR: Private Set Only (Imutable)
Algorithm | Hash | Salt | Parameters |
---|---|---|---|
PBKDF2 | +WqsZSS2m8iId8QQ.... | fcOMenFOG3y... | 64000 |
RuleFor(c => c.Name).NotEmpty().Length(5, 40);
Message.Raise(new Message("Validation", "Error ao validar Nome"));