development:csharp:password_masking

Efficient password string masking

return string.Create(clearValue.Length, clearValue, (span, value) =>
{
    value.AsSpan().CopyTo(span):
    span[3..].Fill('*');
});
Enter your comment:
R U C Z R
 
  • development/csharp/password_masking.txt
  • Last modified: 2021-09-13 07:31
  • by tplecko