From 28df4fddb741d2284f5528c63779684183d48393 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Mon, 2 Aug 2021 11:39:43 +1000 Subject: [PATCH] Support RSA 4096 keys in password history (#1407) * Support RSA 4096 keys in password history * Increase password length to 5000 for RSA4096 keys --- src/Core/Models/Api/CipherLoginModel.cs | 2 +- src/Core/Models/Api/CipherPasswordHistoryModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Models/Api/CipherLoginModel.cs b/src/Core/Models/Api/CipherLoginModel.cs index 01aa6cbaab..f243cbc741 100644 --- a/src/Core/Models/Api/CipherLoginModel.cs +++ b/src/Core/Models/Api/CipherLoginModel.cs @@ -52,7 +52,7 @@ namespace Bit.Core.Models.Api [EncryptedStringLength(1000)] public string Username { get; set; } [EncryptedString] - [EncryptedStringLength(1000)] + [EncryptedStringLength(5000)] public string Password { get; set; } public DateTime? PasswordRevisionDate { get; set; } [EncryptedString] diff --git a/src/Core/Models/Api/CipherPasswordHistoryModel.cs b/src/Core/Models/Api/CipherPasswordHistoryModel.cs index 9f2d42802c..25ba040053 100644 --- a/src/Core/Models/Api/CipherPasswordHistoryModel.cs +++ b/src/Core/Models/Api/CipherPasswordHistoryModel.cs @@ -16,7 +16,7 @@ namespace Bit.Core.Models.Api } [EncryptedString] - [EncryptedStringLength(2000)] + [EncryptedStringLength(5000)] [Required] public string Password { get; set; } [Required]