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:
125 -11 =
 
  • development/csharp/password_masking.txt
  • Last modified: 2021/09/13 07:31
  • by 127.0.0.1