Skip to content

Commit

Permalink
chore: introduce read me file
Browse files Browse the repository at this point in the history
  • Loading branch information
sdanialraza committed Feb 28, 2024
1 parent 1f0f658 commit 0e0cab8
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "password-generator"
version = "0.1.0"
edition = "2021"
license-file = "LICENSE"
readme = "README.md"
repository = "https://github.com/sdanialraza/password-generator"
rust-version = "1.76.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
copypasta = "0.10.1"
eframe = { version = "0.26.2", features = ["persistence"] }
eframe = { features = ["persistence"], version = "0.26.2" }
rand = "0.8.5"
serde_json = "1.0.114"

Expand Down
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 🔒 Password Generator

[![CI Tests](https://github.com/sdanialraza/password-generator/actions/workflows/tests.yml/badge.svg)](https://github.com/sdanialraza/password-generator/actions/workflows/tests.yml)

A cross-platform password generator application that can generate passwords with a length of up to 50 characters.

You can also choose whether to include uppercase letters, lowercase letters, numbers, and special characters in the password.

By default, it generates a password with a length of **10** characters and includes uppercase letters, lowercase letters, numbers, and special characters.

## Installation

Make sure you have the standard Rust toolchain installed. If not, you can install it from [here](https://www.rust-lang.org/tools/install).

```shell
git clone https://github.com/sdanialraza/password-generator.git
cd password-generator
cargo build --release
```

## Usage

Simply run `cargo run` and it will open the password generator application.

You can then choose the length using the slider and whether to include uppercase letters, lowercase letters, numbers, and special characters using the checkboxes.

Click the "Generate" button to generate a password and the "Copy" button to copy the generated password to the clipboard.

### Recent Passwords

It also saves the 10 most recently generated passwords.

> [!TIP]
> You can disable this feature by removing `features = ["persistence"]` from the [Cargo](Cargo.toml) file.
App data location:

- **Linux**: home/_USERNAME_/.local/share/password-generator
- **macOS**: Users/_USERNAME_/Library/Application Support/password-generator
- **Windows**: C:\Users\\_USERNAME_\AppData\Roaming\password-generator

## 🤝 Contributing

Pull requests are welcome, and very much appreciated. But before you start working on a pull request, please make sure to open an issue first, so that we can discuss the changes you want to make.

## ⚖️ License

This project is licensed under the [MIT License](LICENSE).

0 comments on commit 0e0cab8

Please sign in to comment.