SimpleCrypto.net icon indicating copy to clipboard operation
SimpleCrypto.net copied to clipboard

.Compare() returns true for empty string

Open pimbrouwers opened this issue 7 years ago • 0 comments

First off, great library. Thanks so much for putting this together and for all the efforts I know must've gone into this.

Noticed something interesting today. If running a comparison of a previously hashed password against a string.empty the operation returns true.

Ex:

cryptoService.Compare(potentialUser.Password, string.Empty) == true;

pimbrouwers avatar Sep 05 '17 17:09 pimbrouwers