- JSON Formatter/Viewer
Format, minify, visualize and validate JSON.
- JSON Diff
Compare two JSON objects.
- JSON Schema Validator
Validate JSON schema online
- Base64 Encode/Decode
Encode and decode Base64.
- URL Encode/Decode
Encode and decode URL.
- UUID Generator v4 / v1
Generate UUIDs in v4 and other versions.
- Text Hash
Generate cryptographic hashes from your text input using a wide variety of algorithms.
- File Hash
Generate cryptographic hashes from your file using a wide variety of algorithms.
- JWT Decoder & Validator
Decode and validate JSON Web Tokens.
- CSV Viewer
View CSV data in a table.
- CSV to JSON Converter
Convert CSV to JSON.
- JSON to CSV Converter
Convert JSON to CSV.
Powershell Md5 Hash
Learn how to use Powershell to generate an MD5 hash with our detailed and easy-to-follow code snippet.
$file = 'path_to_your_file';
$md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider;
$hash = [System.BitConverter]::ToString($md5.ComputeHash([System.IO.File]::ReadAllBytes($file)));
$hash
This code snippet is designed to generate an MD5 hash of a file using Powershell. First, the file path is stored in the variable '$file'.
A new object of type 'System.Security.Cryptography.MD5CryptoServiceProvider' is created and stored in the variable '$md5'. This is a .NET Framework class used for computing MD5 hash values.
The ComputeHash method on '$md5' is called with the file's bytes as the argument. The BitConverter's ToString method coverts these hashed values into a string so they can be stored in '$hash'.
Finally, '$hash' is called to produce the MD5 hash of your desired file. Replace 'path_to_your_file' with the specific path of your file to get the MD5 hash.