Skip to content

Instantly share code, notes, and snippets.

@blurbdust
blurbdust / main.py
Last active February 11, 2019 23:21
CPRE.331 Lab 3 Part 2
#!/usr/bin/env python3
class Salsa:
def __init__(self,r):
assert r >= 0
self._r = r # number of rounds
self._mask = 0xffffffff # 32-bit mask
def __call__(self,key=[0]*32,nonce=[0]*8,block_counter=[0]*8):
#print(len(key))
assert len(key) == 32
@blurbdust
blurbdust / main.py
Last active February 11, 2019 23:20
CPRE.331 Lab3 Part 1
#!/usr/bin/env python3
import subprocess
rotors = [['VZBRGITYUPSDNHLXAWMJQOFECK'],
['AJDKSIRUXBLHWTMCQGZNPYFVOE'],
['ESOVPZJAYQUIRHXLNFTGKDCMWB']]
original_rotors = rotors
charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
use std::env;
fn main() -> std::io::Result<()>{
let together = "Good morning ".to_owned();
print!("{}", together);
match env::var("USER") {
Ok(val) => print!("{}", val),
Err(e) => print!("err: {}", e),
KERNEL=/home/$USER/linux
RELEASE=stretch
IMAGE=/home/$USER/$RELEASE # match the create-image.sh script if you change the dist
sudo apt-get update && sudo apt-get install build-essential debootstrap qemu-system-x86
git clone https://github.com/torvalds/linux.git $HOME/linux
cd $HOME/linux

Keybase proof

I hereby claim:

  • I am blurbdust on github.
  • I am blurbdust (https://keybase.io/blurbdust) on keybase.
  • I have a public key whose fingerprint is 8260 87AF 5C66 53F0 BAAC A1C5 E4CE 747D EA55 8A13

To claim this, I am signing this object: