Skip to content

Commit 715987e

Browse files
authored
Add initial docs for value generator.
1 parent 2d6372e commit 715987e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

hub/powertoys/run.md

Lines changed: 35 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
@@ -89,6 +91,7 @@ The plugins can be activated with a direct activation command so that PowerToys
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
| Time zones | `&` | `& Newfoundland` shows the current time in the time zone of Newfoundland. |
9193
| Unit converter | `%%` | `%% 10 ft in m` to calculate the number of meters in 10 feet. |
94+
| 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'. |
9295
| 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. |
9396
| Visual Studio Code | `{` | `{ powertoys` to search for previously opened workspaces, remote machines and containers that contain 'powertoys' in their paths. |
9497
| 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. |
@@ -258,6 +261,38 @@ The Unit Converter plugin supports the following unit types:
258261
- Temperature
259262
- Volume
260263

264+
### Value Generator plugin
265+
266+
The value generator plugin can generate GUIDs/UUIDs and calculate hashes.
267+
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 shortcuts:
276+
> `ns:DNS`, `ns:URL`, `ns:OID`, `ns:X500`.
277+
278+
Examples:
279+
- `# guid` <br />`# uuid` <br />`# uuidv4`: Generate a random GUID
280+
- `# guidv1` <br />`# uuidv1`: Generate a version 1 GUID
281+
- `# 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. The namespace parameter can be any valid GUID and the name parameter can be any string
282+
283+
> [!NOTE]
284+
> The `guid` and `uuid` keywords are interchangeable and the `v` is optional. I.e. `guid5` and `guidv5` are the same.
285+
286+
It also supports the following hashing algorithms:
287+
- MD5
288+
- SHA1
289+
- SHA256
290+
- SHA384
291+
- SHA512
292+
293+
Usage:
294+
- `# md5 abc`: The string to be hashed cannot contain multiple consecutive spaces between 2 non-whitespace characters. They will be converted to a single space. I.e. 'a a' will be converted to 'a a' before being hashed.
295+
261296
### Folder search filters
262297

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

0 commit comments

Comments
 (0)