43 lines
1.4 KiB
XML
43 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<Configuration><!-- xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Schemas/Format.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">-->
|
|
<Controls>
|
|
<Control>
|
|
<Name>HashCollection</Name>
|
|
<CustomControl>
|
|
<CustomEntries>
|
|
<CustomEntry>
|
|
<CustomItem>
|
|
<Frame>
|
|
<LeftIndent>2</LeftIndent>
|
|
<CustomItem>
|
|
<ExpressionBinding>
|
|
<ScriptBlock>$_ | ConvertTo-Hex | foreach -Begin { [int] $i = 1 } -Process { if($i -gt 1) { "`n" }; "Hash {0:d2}: {1}" -f $i,$_ ; $i++ }</ScriptBlock>
|
|
<EnumerateCollection />
|
|
</ExpressionBinding>
|
|
<NewLine />
|
|
</CustomItem>
|
|
</Frame>
|
|
</CustomItem>
|
|
</CustomEntry>
|
|
</CustomEntries>
|
|
</CustomControl>
|
|
</Control>
|
|
<Control>
|
|
<Name>Hash</Name>
|
|
<!-- Converts binary hash into a hex string -->
|
|
<CustomControl>
|
|
<CustomEntries>
|
|
<CustomEntry>
|
|
<CustomItem>
|
|
<ExpressionBinding>
|
|
<ScriptBlock>ConvertTo-Hex $_</ScriptBlock>
|
|
<EnumerateCollection />
|
|
</ExpressionBinding>
|
|
</CustomItem>
|
|
</CustomEntry>
|
|
</CustomEntries>
|
|
</CustomControl>
|
|
</Control>
|
|
</Controls>
|
|
</Configuration>
|