Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 465 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 465 Bytes

System.Security extensions

SecureString

Extensions to easily convert from and to a SecureString object

SecureString secureString1 = "text".ToSecureString();
SecureString secureString2 = new byte[] { 116, 101, 120, 116}.ToSecureString();

string text = secureString1.GetString();
byte[] bytes = secureString1.GetBytes();