Compare commits

..

No commits in common. "master" and "1.1" have entirely different histories.
master ... 1.1

6 changed files with 2800 additions and 68 deletions

View File

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

View File

@ -1,4 +0,0 @@
# 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]
name = "rsa"
name = "rsa_implementation"
version = "0.1.0"
edition = "2021"
@ -10,20 +10,9 @@ anyhow = "1.0.80"
arboard = "3.3.1"
clap = { version = "4.5.1", features = ["derive"] }
colored = { version = "2.1.0", features = ["no-color"] }
eframe = "0.26.2"
fern = { version = "0.6.2", features = ["chrono", "colored"] }
humantime = "2.1.0"
log = "0.4.21"
num-bigint-dig = { version = "0.8.4", features = ["rand", "prime"] }
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,20 +4,3 @@ 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.
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`

View File

@ -1 +0,0 @@
1.1