en-US/SuperSecret.Tools-help.xml
<?xml version="1.0" encoding="utf-8"?>
<helpItems schema="maml" xmlns="http://msh"> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>ConvertFrom-SecureSecret</command:name> <command:verb>ConvertFrom</command:verb> <command:noun>SecureSecret</command:noun> <maml:description> <maml:para>Ruthlessly convert any [System.Security.SecureString] back to plaintext. Can be useful for many reasons.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Ruthlessly convert any [System.Security.SecureString] back to plaintext. Can be useful for many reasons.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>ConvertFrom-SecureSecret</maml:name> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="0" aliases="none"> <maml:name>SecureString</maml:name> <maml:Description> <maml:para>Put your secrets here. I wont tell anyone.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">SecureString</command:parameterValue> <dev:type> <maml:name>SecureString</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="0" aliases="none"> <maml:name>SecureString</maml:name> <maml:Description> <maml:para>Put your secrets here. I wont tell anyone.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">SecureString</command:parameterValue> <dev:type> <maml:name>SecureString</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>System.Security.SecureString</maml:name> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <command:returnValue> <dev:type> <maml:name>System.Object</maml:name> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:returnValue> </command:returnValues> <maml:alertSet> <maml:alert> <maml:para></maml:para> </maml:alert> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- Example 1 --------------------------</maml:title> <dev:code>PS C:\> $superSecretPassword = "SuperSecret" | ConvertTo-SecureString -AsPlainText -Force PS C:\> $superSecretPassword System.Security.SecureString PS C:\> ConvertFrom-SecureSecret -SecureString $superSecretPassword SuperSecret</dev:code> <dev:remarks> <maml:para>As you can see, once a secure string is stored, you can't get it to return the original value (By design.)</maml:para> <maml:para>However, there are scenarios where you might need it back for reference..</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- Example 2 --------------------------</maml:title> <dev:code>PS C:\> $clientSecret = New-ClientSecret PS C:\> $clientSecret | ConvertFrom-SecureSecret <returned secret></dev:code> <dev:remarks> <maml:para>Pipeline support rules.</maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>New-ClientSecret</command:name> <command:verb>New</command:verb> <command:noun>ClientSecret</command:noun> <maml:description> <maml:para>Quickly generate a randomized string to be used however you want.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Quickly generate a randomized string to be used however you want.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>New-ClientSecret</maml:name> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>PlainText</maml:name> <maml:Description> <maml:para>Don't want security? No worries bud.</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>PlainText</maml:name> <maml:Description> <maml:para>Don't want security? No worries bud.</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>None</maml:name> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <command:returnValue> <dev:type> <maml:name>System.Object</maml:name> </dev:type> <maml:description> <maml:para></maml:para> </maml:description> </command:returnValue> </command:returnValues> <maml:alertSet> <maml:alert> <maml:para></maml:para> </maml:alert> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- Example 1 --------------------------</maml:title> <dev:code>PS C:\> $clientSecret = New-ClientSecret</dev:code> <dev:remarks> <maml:para>This will generate a unique and random string and store it as a SecureString type. Can then be used with other cmdlets that require such a thing.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- Example 1 --------------------------</maml:title> <dev:code>PS C:\> $clientSecret = New-ClientSecret -PlainText</dev:code> <dev:remarks> <maml:para>This will generate a unique and random string and store it as a String type.</maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks /> </command:command> </helpItems> |