web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SHA256 Encoding return...
Power Automate
Answered

SHA256 Encoding returning base64 value

(0) ShareShare
ReportReport
Posted on by 14

Hey
I want to hash a value in Power Automate Desktop so I am using the Hash text function with SHA256. 

Fredd_0-1700056417875.png

Fredd_1-1700056481966.png

Outpu: c3Rb088NIGmmU6WG5tpohKvKuKyiCjsHaWVL32v10e4=

Problem is that the value I get seems to be Base64 and not hex as all other SHA256 encoders. Anyone knows How to get the value 
73745bd3cf0d2069a653a586e6da6884abcab8aca20a3b0769654bdf6bf5d1ee
from 'text to be hashed' as a real SHA256 encoding


  • Verified answer
    yoko2020 Profile Picture
    495 on at

    Powershell

    $inputString = "Hello, World!"
     # Convert the string to bytes using UTF-8 encoding
     $bytes = [System.Text.Encoding]::UTF8.GetBytes($inputString)
    
     # Compute the hash (SHA-256 in this example, you can change it to another algorithm if needed)
     
     $hashAlgorithm = [System.Security.Cryptography.SHA256]::Create()
     $hashBytes = $hashAlgorithm.ComputeHash($bytes)
    
    
     # Convert the hash bytes to a hex string
     $hexString = [BitConverter]::ToString($hashBytes) -replace '-'
    
    
    Write-Host "Input String: $inputString"
    Write-Host $hexString

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard