Skip to content

Commit 967ea38

Browse files
Update net481PB/draft.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2e7f8e1 commit 967ea38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net481PB/draft.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public static string EncryptAesGcmWithPasswordAndSalt(string plainText, string p
297297
public static string DeriveKeyFromPassword(string password, string base64Salt, int iterations = 2000)
298298
{
299299
if (password == null) throw new ArgumentNullException("password");
300-
if (string.IsNullOrEmpty(base64Salt)) throw new ArgumentNullException("base64Salt");
300+
if (base64Salt == null) throw new ArgumentNullException("base64Salt");
301301

302302
byte[] saltBytes = Convert.FromBase64String(base64Salt);
303303

0 commit comments

Comments
 (0)