--- title: "Hash String With SHA 512" slug: "hash-string-with-sha-512" tags: ["SHA 512", "Hash", "string"] updated: 2022-12-29T19:15:30Z published: 2022-12-29T19:15:30Z canonical: "documentation.decisions.com/hash-string-with-sha-512" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Hash String With SHA 512 | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 5.12.0 | | **Location** | Data > Text | The **Hash String With SHA 512** gives users the ability to hash a string value with the SHA 512 Cryptographic Algorithm. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Encoding | Allows the user to select the encoding type | StringEncodingType | | Input | Value to hash | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Output | Outputs the encoded text input | String | --- ## Example Inputs and Outputs | Encoding | Input | Output | | --- | --- | --- | | Unicode | Null | EXCEPTION MESSAGE | | UTF8 | Empty String | EXCEPTION MESSAGE | | UTF8 | Pop | jz6XH9cuj1qk4UcPluMH1c5HdXD21tfv4DfQt68+OrAV0KjUJNHw/NIktmIcyWNUj4VxvfN0953QVr//+GJOIA== | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1672340119637.png) --- ## Common Errors ### String reference not set to an instance of a String If the String input is not entered or is null, an error will occur. To correct this, ensure that the input field is correctly entered or mapped with a value. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Hash String With SHA 512 1[HashStringWithSHA512] in flow [Flow 6]: Exception invoking method HashStringWithSHA512 on class StringEncryption ---> DecisionsFramework.LoggedException: Exception invoking method HashStringWithSHA512 on class StringEncryption ---> System.ArgumentNullException: String reference not set to an instance of a String. (Parameter 's' at System.Text.Encoding.GetBytes(String s at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.StringEncryption.HashStringWithSHA512(String input, StringEncodingType encoding) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` ## Related - [Hash String With SHA 256](/hash-string-with-sha-256.md) - [Get HMAC-SHA256 Hash Step](/get-hmac-sha256-hash-step.md) - [Get HMAC-SHA384 Hash](/get-hmac-sha384-hash.md)