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 / How to Convert Text to...
Power Automate
Answered

How to Convert Text to MD5

(1) ShareShare
ReportReport
Posted on by 6
I ask copilot to write me a script, but it always gives me an error. 
I have the same question (0)
  • Verified answer
    VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at
     
    Please find the solution as shown in image.
     
     
    Code:
    Please find the below powershell code.
    param (
        [string]$NewVar
    )
    
    function Get-MD5Hash($input) {
        $md5 = [System.Security.Cryptography.MD5]::Create()
        $bytes = [System.Text.Encoding]::UTF8.GetBytes($input)
        $hash = $md5.ComputeHash($bytes)
        $hashString = [BitConverter]::ToString($hash) -replace '-', ''
        return $hashString
    }
    
    $md5Hash = Get-MD5Hash -input $NewVar
    Write-Output $md5Hash
     
    (Note:- if you got your solution you can mark as solution and gives kudos)
     
    Thanks & Regards
    Vishnu Reddy
  • CU29110252-0 Profile Picture
    6 on at
    My input text is different, but the output is the same as yours. 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard