Get-KFHash

Syntax

Get-KFHash 
  -String <string> 
  [-ThrowErrors[:$true]]
Get-KFHash 
  -Object <object> 
  [-ThrowErrors[:$true]]

Support

>= kenaflow 2.0.7

Return

Base64 encoded string.

Description

This cmdlet creates a SHA512 hash as Base64 encoded string from a String or an object.

If an object is supplied it is serialized as PowerShell CliXML before hashing it.

Parameters

-String <string>

The string that has to be hashed.

-Object <object>

The object that has to be hashed.

[-ThrowErrors[:$true]]

This is a default parameter for all kenaflow cmdlets. If set to $true (default!) the engine will pass exception within the cmdlet to the script for further handling.

Example

Get-KFHash -Object @{Hello="kenaflow"}

Discussion