meganz-account-generator

Crates.iomeganz-account-generator
lib.rsmeganz-account-generator
version0.3.0
created_at2026-01-12 18:33:25.042127+00
updated_at2026-01-18 12:39:52.113774+00
descriptionAutomated MEGA.nz account generator using temporary email
homepage
repositoryhttps://github.com/11philip22/meganz-account-generator
max_upload_size
id2038514
size117,644
Philip (11philip22)

documentation

README

MEGA.nz Account Generator

Crates.io Documentation License: GPL v2

Automated account creation for MEGA.nz using temporary email addresses (GuerrillaMail).

Features

  • 📧 Automated Email: Uses GuerrillaMail to generate temporary email addresses
  • 🤖 Auto-Verification: Automatically polls for the MEGA confirmation email and extracts the verification link
  • 🔐 Account Creation: Handles the full registration and verification handshake
  • 📚 Library & CLI: Use as a Rust library or run the included CLI example

Usage as Library

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(())
}

Running the CLI Example

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"

CLI Options

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

License

This project is licensed under the GNU General Public License v2.0 (GPLv2) - see the license file for details.

Commit count: 7

cargo fmt