https://github.com/antoonline/jenkins-tool-create-random-character-strings
This Jenkins pipeline generates random usernames and passwords based on the provided length parameters. It then creates various password hashes, including base64, SHA-256, and MD5, and outputs the generated username and password hashes to the console.
https://github.com/antoonline/jenkins-tool-create-random-character-strings
jenkins-pipeline password random-generation ubuntu username
Last synced: 3 months ago
JSON representation
This Jenkins pipeline generates random usernames and passwords based on the provided length parameters. It then creates various password hashes, including base64, SHA-256, and MD5, and outputs the generated username and password hashes to the console.
- Host: GitHub
- URL: https://github.com/antoonline/jenkins-tool-create-random-character-strings
- Owner: AntoOnline
- Created: 2023-04-23T17:57:09.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T23:39:23.000Z (about 2 years ago)
- Last Synced: 2025-01-18T08:15:07.642Z (5 months ago)
- Topics: jenkins-pipeline, password, random-generation, ubuntu, username
- Homepage: https://anto.online
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Pipeline for Generating a Random Set of Strings
This pipeline generates a random username and password. The pipeline is written in Groovy and can be run on Jenkins.
## Usage
Clone this repository to your local machine.Open the Jenkinsfile in your favorite text editor and configure the following parameters:
username_length: the length of the generated username (default: 9).
password_length: the length of the generated password (default: 12).
Create a new Jenkins job and set the pipeline script to the content of Jenkinsfile.Run the job.
The generated username and passwords will be displayed in the console output of the job.
## How it works
The pipeline generates a random username and password using a set of predefined characters. The username is generated by selecting random consonants and vowels until the desired length is reached. The password is generated by selecting random characters from a set of lowercase and uppercase letters, numbers, and special characters.
Additionally, the pipeline generates the password in base64, SHA-256 formats, etc.
## Want to connect?
Feel free to contact me on [Twitter](https://twitter.com/OnlineAnto), [DEV Community](https://dev.to/antoonline/) or [LinkedIn](https://www.linkedin.com/in/anto-online) if you have any questions or suggestions.
Or just visit my [website](https://anto.online) to see what I do.