| Crates.io | meganz-account-generator |
| lib.rs | meganz-account-generator |
| version | 0.3.0 |
| created_at | 2026-01-12 18:33:25.042127+00 |
| updated_at | 2026-01-18 12:39:52.113774+00 |
| description | Automated MEGA.nz account generator using temporary email |
| homepage | |
| repository | https://github.com/11philip22/meganz-account-generator |
| max_upload_size | |
| id | 2038514 |
| size | 117,644 |
Automated account creation for MEGA.nz using temporary email addresses (GuerrillaMail).
Add to your Cargo.toml:
[dependencies]
meganz-account-generator = "0.1.0"
use meganz_account_generator::AccountGenerator;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize generator
let generator = AccountGenerator::new().await?;
// specific name
let account = generator.generate("MySecurePassword123!", Some("My Name")).await?;
// OR random name
// let account = generator.generate("MySecurePassword123!", None).await?;
println!("Created account: {}", account.email);
println!("Password: {}", account.password);
Ok(())
}
Clone the repository and run the CLI example:
# Generate one account
cargo run --example cli -- --password "YourStrongPassword!"
# Generate 5 accounts and save to file
cargo run --example cli -- --password "YourStrongPassword!" --count 5 --output accounts.txt
# Specify a custom name
cargo run --example cli -- --password "YourStrongPassword!" --name "Custom User"
Options:
-p, --password <PASSWORD> Password for the new account(s)
-n, --name <NAME> Name for the account (random if not specified)
-c, --count <COUNT> Number of accounts to generate [default: 1]
-o, --output <FILE> Output file to save credentials (appends to file)
-h, --help Print help
This project is licensed under the GNU General Public License v2.0 (GPLv2) - see the license file for details.