I am getting the “input” from the server in “Base64-encoded” form as shown in picture.
- I need to decode it into its original form of Binary string .i.e
original = base64_decode(input). - concatenate i.e
to_be_hash =password (known value) + input. - Hash the concatenated string using SHA-256. i.e
binary_hash_str =sha256(to_be_hash).
I need Base64 URL-safe encode the binary hash string above to make it suitable for HTTP requests.
final_hash = base64_url_safe_encode(binary_hash_str)
I am using powershell for this. Can someone guide me how to progress please.