Skip to content

Instantly share code, notes, and snippets.

Peilonrayz Peilonrayz

Block or report user

Report or block Peilonrayz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Peilonrayz /
Last active Aug 29, 2015
This is a very poorly written RSA alg in Rust. This has very few features, and cannot automate p, q or e on it's own. (Randomly)
extern crate rand;
use std::str;
use rand::{task_rng, Rng};
//A few nice Bool funcs.
struct Bool;
impl Bool{
fn not(b: bool) -> bool{if b{false}else{true}}
fn and(a: u64, b: u64) -> u64{a & b}
fn xor(a: u64, b: u64) -> u64{a ^ b}
fn or(a: u64, b: u64) -> u64{a | b}
You can’t perform that action at this time.