Skip to main content

Generate random strings used for passwords

This time, I will explain how to generate random strings that are effective for generating passwords.

How to create a scenario

Implemented with copy and paste

Copy the following code and paste it on the edit screen of Power Automate Desktop to add the target action.

Text.Random UseUpperCaseLetters: True UseLowerCaseLetters: True UseDigits: True UseSymbols: True MinimumLength: 6 MaximumLength: 10 RandomText=> RandomText

Operate and implement Power Automate Desktop

  1. From "Search Action", enter "Random Text generation" and set the property as follows.

    パラメータ名
    Use capital letters (A-Z)Check to allow capital letters
    Use lowercase (a-z)Check to allow lowercase letters
    Use the number (0-9)Check to allow numbers
    Use a symbolCheck to allow symbols
    MinimumMinimum number of character strings to be generated
    MaximumMaximum number of characters in the string to be generated
  2. Save and execute creates a random string that changes each time you run.

Set complex rules

If you need to decide the rules in the number of digits, you need to create multiple random textbooks and combine them.

This time, as an example, the first two digits will always generate a numerical value, and the remaining six digits will be generated.

Implemented with copy and paste

Copy the following code and paste it on the edit screen of Power Automate Desktop to add the target action.

Text.Random UseUpperCaseLetters: False UseLowerCaseLetters: False UseDigits: True UseSymbols: False MinimumLength: 2 MaximumLength: 2 RandomText=> RandomText1
Text.Random UseUpperCaseLetters: True UseLowerCaseLetters: True UseDigits: False UseSymbols: False MinimumLength: 6 MaximumLength: 6 RandomText=> RandomText2
Text.JoinText.Join List: [RandomText1, RandomText2] Result=> JoinedText

Operate and implement Power Automate Desktop

  1. Under the method mentioned above, it generates two random strings (RandomText1, Randomtext2) from "Random Text generation".

  2. Search for "Action Search" as "Text binding" and set the property as follows.

    Parameter namevalue
    Specify a binding list%[RandomText1, RandomText2]%
    Listing items separatednone
  3. Running random strings according to the rules are generated.