ConnectIT 365
Function GENERATEHASHBASE64
What it Means:
"Generates a hash from a string": Just like before, this takes input text and runs it through a hashing algorithm (like SHA-256 or MD5) to produce a fixed-size code.
"Based on the provided hash algorithm": You choose which algorithm to use — different ones create different outputs and have varying levels of security.
"Base64 encoded": After the hash is created, it’s encoded in Base64, which is a way of turning binary data into readable text using only ASCII characters (letters, numbers, symbols). This makes it safe to transmit in places like URLs or JSON files.
Use Case Example:
Imagine an API that stores user data. It wants to hash the user’s email and keep it in a database, but the database only accepts plain text.
So it:
Hashes
"user@example.com"
using SHA-256.Gets raw binary output like
0x92a3e4...
.Then encodes it in Base64 — turning it into something like
"kqPkz5qrbZUDTQjdhT1Ex1A8u6o="
.
This makes the hashed data readable, portable, and easy to store or transmit over networks that expect text.
More information available on the website of Microsoft Learn
Back to: ConnectIT 365 manual home
IDYN 2024