HubWorld
A Rust library for generating random data: UUIDs, names, passwords, and credit cards.
Features
- 🔐 UUID Generation - Generate random UUID v4
- 👤 Name Generation - Generate random first names, last names, and full names
- 🔑 Password Generation - Generate secure random passwords with customizable length
- 💳 Credit Card Generation - Generate valid (Luhn) credit card numbers by brand or random
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Usage
UUID Generation
use generate_uuid;
let id = generate_uuid;
println!;
Name Generation
use ;
let first_name = generate_first_name;
let last_name = generate_last_name;
let full_name = generate_full_name;
println!;
Password Generation
use ;
// Default length (16 characters)
let password = generate_password;
// Custom length
let long_password = generate_password_with_length;
Credit Card Generation
use ;
// Random brand (Visa, Mastercard, Amex, Discover)
let random_card = generate_credit_card;
// Specific brand
let visa = generate_credit_card_for_brand;
let mastercard = generate_credit_card_for_brand;
let amex = generate_credit_card_for_brand;
let discover = generate_credit_card_for_brand;
// Brand name as string
let union_pay = generate_credit_card_for_brand_name;
let diners = generate_credit_card_for_brand_name;
let verve = generate_credit_card_for_brand_name;
Contribuindo
Contribuições são muito bem-vindas! Veja o arquivo CONTRIBUTING.md para mais detalhes.
License
Este projeto é open source e está licenciado sob a MIT license.