doc/devdocs/modules/launcher/plugins/community.valuegenerator.md
The Value Generator plugin is used to generate hashes for strings, to calculate base64 encodings, escape and encode URLs/URIs and to generate GUIDs of version 1, 3, 4, 5, and 7.
IComputeRequestbool Compute() method must populate the IsSuccessful and one of the Result and ErrorMessage fieldsstring ResultToString() will be used for the Result's titleDescription field will be used for the Result's subtitleHashRequest_algorithms dictionary. InputParser.ParseInput() will need to return a HashRequest for the algorithm in the queryBase64RequestCompute() will populate Result with the base64 encoding of the byte array passed in the constructorBase64DecodeRequestCompute() will populate Result with the decoded byte array of the base64 string passed in the constructorGUIDRequestGUIDGenerator class to generate or compute the requested GUIDGUIDGeneratorUuidCreateSequential for version 1System.Guid.NewGuid() for version 4System.Guid.CreateVersion7() for version 7PredefinedNamespaces dictionary contains aliases for the predefined namespacesUrlEncodeRequestCompute() will populate Result with the encoded url converted using HttpUtility.UrlEncode().UrlDecodeRequestCompute() will populate Result with the decoded url converted using HttpUtility.UrlDecode().DataEscapeRequestCompute() will populate Result with the escaped data string converted using System.Uri.EscapeDataString().DataUnescapeRequestCompute() will populate Result with the unescaped data string converted using System.Uri.UnescapeDataString().HexEscapeRequestCompute() will populate Result with the escaped data string converted using System.Uri.HexEscape().HexUnescapeRequestCompute() will populate Result with the unescaped data string converted using System.Uri.HexUnescape().InputParserParseInput() method must return an object that implements the IComputeRequest interface or it must throw one of FormatException or ArgumentExceptionArgumentException should signal the fact that the query contains a mistake that the user can fix (e.g. an unsupported hash function, an invalid GUID version, an invalid namespace, etc.)The error message will be shown to the user and no log message will be created
FormatException should signal either:
The error message will not be shown to the user but a log message will be created
/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.ValueGenerator/Generators/ and inside it add a class that implements IComputeRequest.InputParser.ParseInput() to handle a request for the new generator and return an instance of the class you created in step 1