Compare commits

...

24 Commits
1.1 ... master

Author SHA1 Message Date
spv
284af2dd89
Updated documentation
All checks were successful
Build / release (push) Successful in 1m51s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 14:09:12 +02:00
spv
65c912e5d6
bruh
All checks were successful
Build / release (push) Successful in 1m49s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 14:03:28 +02:00
spv
4e6a87e397
bruh
All checks were successful
Build / release (push) Successful in 1m51s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 14:00:32 +02:00
spv
3dc162ff6c
bruh
Some checks failed
Build / release (push) Failing after 1m12s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:55:16 +02:00
spv
562285a0ee
bruh
Some checks failed
Build / release (push) Failing after 44s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:53:31 +02:00
spv
9229ef72a7
bruh
Some checks failed
Build / release (push) Failing after 39s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:52:16 +02:00
spv
11a75bfef9
bruh
Some checks failed
Build / release (push) Failing after 34s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:47:42 +02:00
spv
ae47d9e127
bruh
All checks were successful
Build / release (push) Successful in 1m5s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:41:12 +02:00
spv
6fff049184
bruh
All checks were successful
Build / release (push) Successful in 1m1s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:39:25 +02:00
spv
8cddfe0bd7
bruh
All checks were successful
Build / release (push) Successful in 1m3s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:37:25 +02:00
spv
8e5cd6e1bf
bruh
All checks were successful
Build / release (push) Successful in 59s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:31:35 +02:00
spv
9fec8beffc
bruh
Some checks failed
Build / release (push) Failing after 52s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:29:19 +02:00
spv
eac645c2f4
bruh
Some checks failed
Build / release (push) Failing after 51s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:28:10 +02:00
spv
56fa25b23c
bruh
Some checks failed
Build / release (push) Has been cancelled
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:23:30 +02:00
spv
569af3c4df
bruh
Some checks failed
Build / release (push) Failing after 1m35s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:20:53 +02:00
spv
677761dae3
bruh
All checks were successful
Build / release (push) Successful in 1m40s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:17:05 +02:00
spv
d4b6bc1544
bruh
Some checks failed
Build / release (push) Failing after 1m32s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:06:40 +02:00
spv
a20a68d279
bruh
Some checks failed
Build / release (push) Failing after 1m33s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 13:00:28 +02:00
spv
fb7ee5ad76
bruh
Some checks failed
Build / release (push) Failing after 1m35s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 12:40:37 +02:00
spv
59f1f38c16
bruh
All checks were successful
Build / release (push) Successful in 1m34s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 12:38:35 +02:00
spv
a4168d39b8
bruh
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 12:38:23 +02:00
spv
634fdd2541
bruh
All checks were successful
Build / release (push) Successful in 20s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 12:34:12 +02:00
spv
816c902ec7
bruh
Some checks failed
Build / release (push) Failing after 1m49s
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 12:31:37 +02:00
spv
f6ffd9d117
bruh
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 12:30:25 +02:00
6 changed files with 68 additions and 2800 deletions

View File

@ -1,22 +1,37 @@
name: Build name: Build
run-name: Im about to BUILLLLDDDDDDD run-name: Im about to BUILLLLDDDDDDD
on: [push] on:
push:
branches:
- 'master'
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo '${{secrets.RELEASE_TOKEN}}' | base64
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
#- name: install rust - name: Install Rust
#run: apt update run: curl https://sh.rustup.rs -sSf | sh -s -- -y && . "$HOME/.cargo/env" && rustup target add x86_64-pc-windows-gnu
#- run: apt install cargo golang -y - name: Install Mingw
#- run: cargo build --release run: apt update && apt install -y mingw-w64
- name: Build linux
run: ~/.cargo/bin/cargo build --release
- name: Build Windows
run: ~/.cargo/bin/cargo build --release --target x86_64-pc-windows-gnu
- name: Hash Release
id: get-hash
run: |
echo "TAG_NAME=$(cat VERSION.txt)" >> $GITHUB_OUTPUT
- name: Publish - name: Publish
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
env: env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 NODE_OPTIONS: '--trace-warnings'
with: with:
sha256sum: true
body_path: ./CHANGES.md
tag_name: '${{steps.get-hash.outputs.TAG_NAME}}'
name: 'Version ${{steps.get-hash.outputs.TAG_NAME}}'
files: |- files: |-
./main.rs ./target/release/rsa
./target/x86_64-pc-windows-gnu/release/rsa.exe

4
CHANGES.md Normal file
View File

@ -0,0 +1,4 @@
# CHANGES
Some changes this version:
- I got it to fucking work (maybe)

2800
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
[package] [package]
name = "rsa_implementation" name = "rsa"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
@ -10,9 +10,20 @@ anyhow = "1.0.80"
arboard = "3.3.1" arboard = "3.3.1"
clap = { version = "4.5.1", features = ["derive"] } clap = { version = "4.5.1", features = ["derive"] }
colored = { version = "2.1.0", features = ["no-color"] } colored = { version = "2.1.0", features = ["no-color"] }
eframe = "0.26.2"
fern = { version = "0.6.2", features = ["chrono", "colored"] } fern = { version = "0.6.2", features = ["chrono", "colored"] }
humantime = "2.1.0" humantime = "2.1.0"
log = "0.4.21" log = "0.4.21"
num-bigint-dig = { version = "0.8.4", features = ["rand", "prime"] } num-bigint-dig = { version = "0.8.4", features = ["rand", "prime"] }
rand = "0.8.5" rand = "0.8.5"
[profile.release]
split-debuginfo = "packed"
strip = "symbols"
lto = "fat"
panic = "abort"
codegen-units = 1
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
incremental = false

View File

@ -4,3 +4,20 @@ my rsa implementation in rust using as few libraries as my mental wellbeing coul
Im using clap so documentation is not really required the binary documents itself. Im using clap so documentation is not really required the binary documents itself.
idk idk
## Usage
1. Generate a pair of keys
```bash
./rsa generate <-b/--bitsize keysize>
```
2. Encrypt some data with public key
```bash
./rsa encrypt public_key "Hello"
```
Will write the encrypted data to `message.enc`
3. Decrypt it
```bash
./rsa private_key message.enc
```
Will print `Hello`

1
VERSION.txt Normal file
View File

@ -0,0 +1 @@
1.1