https://github.com/linx-software/generate-random-string
https://github.com/linx-software/generate-random-string
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/linx-software/generate-random-string
- Owner: linx-software
- License: mit
- Created: 2023-02-02T14:54:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T09:28:16.000Z (almost 3 years ago)
- Last Synced: 2025-02-01T02:44:14.706Z (11 months ago)
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Generate Random String
Use this utility to generate random strings
## Prerequisites
Linx Designer 6.4.3 or higher
## Setup
1. Download the repo
2. Open the `GeneratingRandomString.solution` file in the repository `Linx6` folder
## Usage
1. Debug the `GenerateRandomString` function
2. Define values for the input parameters
1. Length (String)
2. AllowUpperCase (Boolean)
3. AllowLowerCase (Boolean)
4. AllowSpecialCharacters (Boolean)
5. AllowNumbers (Boolean)
3. Start the debugger
## Explanation
1. A string of all allowed characters is created.
2. The Cryptography plugin (`GenerateRandom`) is used to generate a random byte.
3. The byte identifies the location of one character in the string of allowed characters.
4. Each identified character is appended to the end of the return string.
5. The process is repeated until the length of the return string matches the desired length.