Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
284af2dd89 | |||
65c912e5d6 | |||
4e6a87e397 | |||
3dc162ff6c | |||
562285a0ee | |||
9229ef72a7 | |||
11a75bfef9 | |||
ae47d9e127 | |||
6fff049184 | |||
8cddfe0bd7 | |||
8e5cd6e1bf | |||
9fec8beffc | |||
eac645c2f4 | |||
56fa25b23c | |||
569af3c4df | |||
677761dae3 | |||
d4b6bc1544 | |||
a20a68d279 | |||
fb7ee5ad76 | |||
59f1f38c16 | |||
a4168d39b8 | |||
634fdd2541 | |||
816c902ec7 | |||
f6ffd9d117 |
@ -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
4
CHANGES.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# CHANGES
|
||||||
|
|
||||||
|
Some changes this version:
|
||||||
|
- I got it to fucking work (maybe)
|
2800
Cargo.lock
generated
2800
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
15
Cargo.toml
15
Cargo.toml
@ -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
|
17
README.md
17
README.md
@ -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
1
VERSION.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.1
|
Loading…
x
Reference in New Issue
Block a user