Click or drag to resize

WindowsUtilitiesEncryptSecureString Method

Encrypts a secure string into an array of bytes.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static byte[] EncryptSecureString(
	this SecureString text,
	DataProtectionScope scope = DataProtectionScope.CurrentUser
)

Parameters

text
Type: System.SecuritySecureString
The secure string.
scope (Optional)
Type: System.Security.CryptographyDataProtectionScope
The data protection scope.

Return Value

Type: Byte
An array of bytes or null.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SecureString. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also