Skip to content

Commit 097ea13

Browse files
Merge pull request #4509 from IHorvalds/powertoys-run-valuegenerator-docs
Powertoys Run ValueGenerator docs
2 parents 534f9e6 + c1fbff9 commit 097ea13

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

hub/powertoys/run.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ PowerToys Run features include:
3030
- Execute system commands
3131
- Get time and date information
3232
- Convert units
33+
- Calculate hashes
34+
- Generate GUIDs
3335
- Open web pages or start a web search
3436

3537
## Settings
@@ -88,6 +90,7 @@ The plugins can be activated with a direct activation command so that PowerToys
8890
| Shell command | `>` | `> ping localhost` to do a ping query. |
8991
| Time and date| `)` | `) time and date` shows the current time and date in different formats.<br />`) calendar week::04/01/2022` shows the calendar week for the date '04/01/2022'. |
9092
| Unit converter | `%%` | `%% 10 ft in m` to calculate the number of meters in 10 feet. |
93+
| Value Generator | `#` | `# guid3 ns:URL www.microsoft.com` to generate the GUIDv3 for the URL namespace using the URL namespace. <br />`# sha1 abc` to calculate the SHA1 hash for the string 'abc'. <br />`# base64 abc` to encode the string 'abc' to base64. |
9194
| URI-handler | `//` | `//` to launch your default browser.<br />`// learn.microsoft.com` to have your default browser go to Microsoft Learn.<br />`mailto:` and `ms-settings:` links are supported. |
9295
| Visual Studio Code | `{` | `{ powertoys` to search for previously opened workspaces, remote machines and containers that contain 'powertoys' in their paths. |
9396
| Web search | `??` | `??` to launch your default browser's search page.<br />`?? What is the answer to life` to search with your default browser's search engine. |
@@ -257,6 +260,49 @@ The Unit Converter plugin supports the following unit types:
257260
- Temperature
258261
- Volume
259262

263+
### Value Generator plugin
264+
265+
The Value Generator plugin can generate GUIDs/UUIDs, calculate hashes, and encode strings to base64.
266+
267+
#### UUIDs
268+
It supports the following GUID versions:
269+
- v1 - Time based
270+
- v3 - Namespace and name based, using MD5
271+
- v4 - Random value
272+
- v5 - Namespace and name based, using SHA1
273+
274+
> [!NOTE]
275+
> For versions 3 and 5 there are some predefined namespaces: DNS, URL, OID ad X500. You can use the following predefined namespaces:
276+
> * `ns:DNS`
277+
> * `ns:URL`
278+
> * `ns:OID`
279+
> * `ns:X500`
280+
281+
Examples:
282+
| Command | Result |
283+
| :--- | :--- |
284+
| `# guid` <br />`# uuid` <br />`# uuidv4` | Generate a random GUID |
285+
| `# guidv1` <br />`# uuidv1` | Generate a version 1 GUID |
286+
| `# guidv3 ns:DNS www.microsoft.com` <br />`# uuidv3 ns:DNS www.microsoft.com` | Generate the GUID version 3 for 'www.microsoft.com' using the DNS namespace. <br /> The namespace parameter can be any valid GUID and the name parameter can be any string |
287+
288+
> [!NOTE]
289+
> The `guid` and `uuid` keywords are interchangeable and the `v` is optional. I.e. `guid5` and `guidv5` are the same.
290+
291+
#### Hashing
292+
It supports the following hashing algorithms:
293+
- MD5
294+
- SHA1
295+
- SHA256
296+
- SHA384
297+
- SHA512
298+
299+
Usage:
300+
- `# md5 abc`
301+
302+
#### Base64 Encoding
303+
Usage:
304+
- `# base64 abc`
305+
260306
### Folder search filters
261307

262308
In the Folder plugin you can filter the results by using some special characters.

0 commit comments

Comments
 (0)