You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/powertoys/run.md
+20-9Lines changed: 20 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ The plugins can be activated with a direct activation command so that PowerToys
91
91
| 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'. |
92
92
| Time zones |`&`|`& Newfoundland` shows the current time in the time zone of Newfoundland. |
93
93
| 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'. |
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'. <br />`# base64 abc` to encode the string 'abc' to base64. |
95
95
| 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. |
96
96
| Visual Studio Code |`{`|`{ powertoys` to search for previously opened workspaces, remote machines and containers that contain 'powertoys' in their paths. |
97
97
| 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. |
@@ -263,35 +263,46 @@ The Unit Converter plugin supports the following unit types:
263
263
264
264
### Value Generator plugin
265
265
266
-
The value generator plugin can generate GUIDs/UUIDs and calculate hashes.
266
+
The Value Generator plugin can generate GUIDs/UUIDs, calculate hashes, and encode strings to base64.
267
267
268
+
#### UUIDs
268
269
It supports the following GUID versions:
269
270
- v1 - Time based
270
271
- v3 - Namespace and name based, using MD5
271
272
- v4 - Random value
272
273
- v5 - Namespace and name based, using SHA1
273
274
274
275
> [!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`.
276
+
> For versions 3 and 5 there are some predefined namespaces: DNS, URL, OID ad X500. You can use the following predefined namespaces:
277
+
> *`ns:DNS`
278
+
> *`ns:URL`
279
+
> *`ns:OID`
280
+
> *`ns:X500`
277
281
278
282
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
283
+
| Command | Result |
284
+
| :--- | :--- |
285
+
|`# guid` <br />`# uuid` <br />`# uuidv4`| Generate a random GUID |
286
+
|`# guidv1` <br />`# uuidv1`| Generate a version 1 GUID |
287
+
|`# 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 |
282
288
283
289
> [!NOTE]
284
290
> The `guid` and `uuid` keywords are interchangeable and the `v` is optional. I.e. `guid5` and `guidv5` are the same.
285
291
286
-
It also supports the following hashing algorithms:
292
+
#### Hashing
293
+
It supports the following hashing algorithms:
287
294
- MD5
288
295
- SHA1
289
296
- SHA256
290
297
- SHA384
291
298
- SHA512
292
299
293
300
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.
0 commit comments