https://github.com/beliumgl/rsg
A project written in C++17 that allows you to generate strings with different modes, different character sets, and any length.
https://github.com/beliumgl/rsg
cpp cpp17 random random-generation random-string-generation random-string-generator random-string-generators strings
Last synced: 4 months ago
JSON representation
A project written in C++17 that allows you to generate strings with different modes, different character sets, and any length.
- Host: GitHub
- URL: https://github.com/beliumgl/rsg
- Owner: beliumgl
- Created: 2025-02-14T15:53:40.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-02-14T17:04:21.000Z (12 months ago)
- Last Synced: 2025-02-14T17:33:01.885Z (12 months ago)
- Topics: cpp, cpp17, random, random-generation, random-string-generation, random-string-generator, random-string-generators, strings
- Language: C++
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random String Generator
A project written in C++17 that allows you to generate strings with different modes, different character sets, and any length (within a specified range).
# Build
```
mkdir build && cd build
cmake ..
cmake --build .
```
# Run
```
./testapp
```
# Usage
```cpp
#include
#include
int main() {
unsigned short length = 20;
unsigned char mode = 0; // truly random
// Example usage
RSG::RSG rsg = RSG::RSG("charset (you can edit this btw)", length, mode);
std::cout << rsg.Generate() << '\n';
}
```