Create hash

The create-hash function is used to hash a specific content

Parameters

  • value (string): the string that you want to hash. This parameter is mandatory.
  • type (string): Type of hash to use (available: sha256, sha512,sha1, md5, sha22. This parameter is mandatory.
  • encoding(string): Type of output (available : hex and base64. This parameter is optional and default to hex

Examples

Here are a few examples of how to use the create-hash function:

Example 1: Replace a string with another string

create-hash("I like apple",type="sha256")

This will gives the following result : b313ed9db5d9e8397e4c9c5552fd3a51e1518aa1a2c515ffb23b66eac4306bbb