mirror of
https://github.com/bitwarden/server.git
synced 2024-12-28 17:57:37 +01:00
rename all to PBKDF2_SHA256
This commit is contained in:
parent
76caf1c580
commit
3e2b220074
@ -18,7 +18,7 @@ namespace Bit.Core.Models.Api
|
|||||||
{
|
{
|
||||||
switch(Kdf.Value)
|
switch(Kdf.Value)
|
||||||
{
|
{
|
||||||
case KdfType.PBKDF2:
|
case KdfType.PBKDF2_SHA256:
|
||||||
if(KdfIterations.Value < 5000 || KdfIterations.Value > 1_000_000)
|
if(KdfIterations.Value < 5000 || KdfIterations.Value > 1_000_000)
|
||||||
{
|
{
|
||||||
yield return new ValidationResult("KDF iterations must be between 5000 and 1000000.");
|
yield return new ValidationResult("KDF iterations must be between 5000 and 1000000.");
|
||||||
|
@ -33,7 +33,7 @@ namespace Bit.Core.Models.Api
|
|||||||
Name = Name,
|
Name = Name,
|
||||||
Email = Email,
|
Email = Email,
|
||||||
MasterPasswordHint = MasterPasswordHint,
|
MasterPasswordHint = MasterPasswordHint,
|
||||||
Kdf = Kdf.GetValueOrDefault(KdfType.PBKDF2),
|
Kdf = Kdf.GetValueOrDefault(KdfType.PBKDF2_SHA256),
|
||||||
KdfIterations = KdfIterations.GetValueOrDefault(5000)
|
KdfIterations = KdfIterations.GetValueOrDefault(5000)
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ namespace Bit.Core.Models.Api
|
|||||||
{
|
{
|
||||||
switch(Kdf.Value)
|
switch(Kdf.Value)
|
||||||
{
|
{
|
||||||
case KdfType.PBKDF2:
|
case KdfType.PBKDF2_SHA256:
|
||||||
if(KdfIterations.Value < 5000 || KdfIterations.Value > 1_000_000)
|
if(KdfIterations.Value < 5000 || KdfIterations.Value > 1_000_000)
|
||||||
{
|
{
|
||||||
yield return new ValidationResult("KDF iterations must be between 5000 and 1000000.");
|
yield return new ValidationResult("KDF iterations must be between 5000 and 1000000.");
|
||||||
|
@ -39,7 +39,7 @@ namespace Bit.Core.Models.Table
|
|||||||
public string GatewayCustomerId { get; set; }
|
public string GatewayCustomerId { get; set; }
|
||||||
public string GatewaySubscriptionId { get; set; }
|
public string GatewaySubscriptionId { get; set; }
|
||||||
public string LicenseKey { get; set; }
|
public string LicenseKey { get; set; }
|
||||||
public KdfType Kdf { get; set; } = KdfType.PBKDF2;
|
public KdfType Kdf { get; set; } = KdfType.PBKDF2_SHA256;
|
||||||
public int KdfIterations { get; set; } = 5000;
|
public int KdfIterations { get; set; } = 5000;
|
||||||
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
||||||
public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow;
|
public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow;
|
||||||
|
Loading…
Reference in New Issue
Block a user