1"use strict";(self.webpackChunkgetps_dev=self.webpackChunkgetps_dev||[]).push([["4796"],{58292(e,n,t){t.r(n),t.d(n,{metadata:()=>a,default:()=>h,frontMatter:()=>r,contentTitle:()=>l,toc:()=>c,assets:()=>o});var a=JSON.parse('{"id":"PSDev/Command Reference/Get-StringHash","title":"Get-StringHash","description":"Help page for the Powershell \\"Get-StringHash\\" command","source":"@site/modules/PSDev/03-Command Reference/Get-StringHash.mdx","sourceDirName":"PSDev/03-Command Reference","slug":"/PSDev/Command Reference/Get-StringHash","permalink":"/modules/PSDev/Command Reference/Get-StringHash","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"id":"Get-StringHash","title":"Get-StringHash","description":"Help page for the Powershell \\"Get-StringHash\\" command","keywords":["Powershell","PSDev","Help","Documentation"],"hide_title":false,"hide_table_of_contents":false},"sidebar":"defaultSidebar","previous":{"title":"Get-Selector","permalink":"/modules/PSDev/Command Reference/Get-Selector"},"next":{"title":"Group-ObjectEvenly","permalink":"/modules/PSDev/Command Reference/Group-ObjectEvenly"}}'),s=t(74848),i=t(28453);let r={id:"Get-StringHash",title:"Get-StringHash",description:'Help page for the Powershell "Get-StringHash" command',keywords:["Powershell","PSDev","Help","Documentation"],hide_title:!1,hide_table_of_contents:!1},l,o={},c=[{value:"SYNOPSIS",id:"synopsis",level:2},{value:"SYNTAX",id:"syntax",level:2},{value:"DESCRIPTION",id:"description",level:2},{value:"EXAMPLES",id:"examples",level:2},{value:"EXAMPLE 1",id:"example-1",level:3},{value:"PARAMETERS",id:"parameters",level:2},{value:"-Strings",id:"-strings",level:3},{value:"-Algorithm",id:"-algorithm",level:3},{value:"-Salt",id:"-salt",level:3},{value:"-RandomSalt",id:"-randomsalt",level:3},{value:"-Iterations",id:"-iterations",level:3},{value:"-ProgressAction",id:"-progressaction",level:3},{value:"CommonParameters",id:"commonparameters",level:3},{value:"INPUTS",id:"inputs",level:2},{value:"OUTPUTS",id:"outputs",level:2},{value:"NOTES",id:"notes",level:2},{value:"RELATED LINKS",id:"related-links",level:2},{value:"EDIT THIS DOC",id:"edit-this-doc",level:2}];function d(e){let n={a:"a",code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"synopsis",children:"SYNOPSIS"}),"\n",(0,s.jsx)(n.h2,{id:"syntax",children:"SYNTAX"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-powershell",children:"Get-StringHash [-Strings] <String[]> [[-Algorithm] <String>] [[-Salt] <String>] [-RandomSalt]\n [[-Iterations] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]\n"})}),"\n",(0,s.jsx)(n.h2,{id:"description",children:"DESCRIPTION"}),"\n",(0,s.jsx)(n.p,{children:"Generates a hash of an string object"}),"\n",(0,s.jsx)(n.h2,{id:"examples",children:"EXAMPLES"}),"\n",(0,s.jsx)(n.h3,{id:"example-1",children:"EXAMPLE 1"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-powershell",children:"Get-StringHash -Strings 'ThisIsAComplicatedPassword123#' -Algorithm SHA512\nHashes the string specified\n"})}),"\n",(0,s.jsx)(n.h2,{id:"parameters",children:"PARAMETERS"}),"\n",(0,s.jsx)(n.h3,{id:"-strings",children:"-Strings"}),"\n",(0,s.jsx)(n.p,{children:"Defines the array of strings to generate hashes of"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:"Type: String[]\nParameter Sets: (All)\nAliases:\n\nRequired: True\nPosition: 1\nDefault value: None\nAccept pipeline input: True (ByValue)\nAccept wildcard characters: False\n"})}),"\n",(0,s.jsx)(n.h3,{id:"-algorithm",children:"-Algorithm"}),"\n",(0,s.jsx)(n.p,{children:"Defines which hashing algorithm to use, valid values are MD5, SHA256, SHA384 and SHA512.\nDefaults to SHA512"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:"Type: String\nParameter Sets: (All)\nAliases:\n\nRequired: False\nPosition: 2\nDefault value: SHA256\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,s.jsx)(n.h3,{id:"-salt",children:"-Salt"}),"\n",(0,s.jsx)(n.p,{children:"Defines a specific salt to use, this is useful when recalculating a string hash with a known salt for comparison.\nA new random salt\nis generated by default for every string that is processed."}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:"Type: String\nParameter Sets: (All)\nAliases:\n\nRequired: False\nPosition: 3\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,s.jsx)(n.h3,{id:"-randomsalt",children:"-RandomSalt"}),"\n",(0,s.jsx)(n.p,{children:"Defines that a random salt should be used"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:"Type: SwitchParameter\nParameter Sets: (All)\nAliases:\n\nRequired: False\nPosition: Named\nDefault value: False\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,s.jsx)(n.h3,{id:"-iterations",children:"-Iterations"}),"\n",(0,s.jsx)(n.p,{children:"Defines the number of rehashing operations that is performed."}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:"Type: Int32\nParameter Sets: (All)\nAliases:\n\nRequired: False\nPosition: 4\nDefault value: 10\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,s.jsx)(n.h3,{id:"-progressaction",children:"-ProgressAction"}),"\n",(0,s.jsx)(n.p,{children:"{{ Fill ProgressAction Description }}"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:"Type: ActionPreference\nParameter Sets: (All)\nAliases: proga\n\nRequired: False\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,s.jsx)(n.h3,{id:"commonparameters",children:"CommonParameters"}),"\n",(0,s.jsxs)(n.p,{children:["This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see ",(0,s.jsx)(n.a,{href:"http://go.microsoft.com/fwlink/?LinkID=113216",children:"about_CommonParameters"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"inputs",children:"INPUTS"}),"\n",(0,s.jsx)(n.h2,{id:"outputs",children:"OUTPUTS"}),"\n",(0,s.jsx)(n.h2,{id:"notes",children:"NOTES"}),"\n",(0,s.jsx)(n.h2,{id:"related-links",children:"RELATED LINKS"}),"\n",(0,s.jsx)(n.h2,{id:"edit-this-doc",children:"EDIT THIS DOC"}),"\n",(0,s.jsxs)(n.p,{children:["This page was auto-generated from the powershell command comment based help. To edit the content of this page, update the script file comment based help on github ",(0,s.jsx)(n.a,{href:"https://github.com/hanpq/PSDev",children:"Github"})]})]})}function h(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},28453(e,n,t){t.d(n,{R:()=>r,x:()=>l});var a=t(96540);let s={},i=a.createContext(s);function r(e){let n=a.useContext(i);return a.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.