Class Secrets
- Namespace
- Fabricator.Core
- Assembly
- Fabricator.Core.dll
[CompilationMapping(SourceConstructFlags.Module)]
public static class Secrets
- Inheritance
-
Secrets
- Inherited Members
Methods
Materialize(SecureString)
Converts a SecureString to a string. Mind that the result is a non-secure string. It will be a subject to normal .NET garbage collection. Call as late as possible, or don't call at all.
public static string Materialize(SecureString secret)
Parameters
secretSecureStringThe secure string to convert.
Returns
OfString(string)
Converts a string to a SecureString. Mind that if you have a string with a secret, this means that the input data is already insecure in the process memory. Try to avoid situations when you need this API.
public static SecureString OfString(string secret)
Parameters
secretstringA plain string containing the secret content.