dotnet / dotnet/dotnet-api-docs

Why method operate on passwords as strings?

Open
#1,081 1 comment 0 reactions 0 assignees View on GitHub
area-System.Security dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Why this method operate on passwords as strings and not securestrings? Wouldn't it be more secure if passwords be securestrings?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: a06971de-5a65-d773-5466-254003744104
* Version Independent ID: 86be034d-a82d-ee11-0196-e0b9e544cbe5
* Content: [X509Certificate2Collection.Import Method (System.Security.Cryptography.X509Certificates)](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x509certificate2collection.import?view=netframework-4.7.2)
* Content Source: [xml/System.Security.Cryptography.X509Certificates/X509Certificate2Collection.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Security.Cryptography.X509Certificates/X509Certificate2Collection.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.