Skip to content

Instantly share code, notes, and snippets.

@ferociouself
ferociouself / clean_instance.sh
Last active February 8, 2018 22:32
Scripts that allow CodeDeploy to deploy Django code. Replace "project" with your project name, and "app_name" with the name of your app.
#!/usr/bin/env bash
rm -rf /var/www/html/*
rm -rf /home/ec2-user/www/*
rm -rf /home/ec2-user/installation
@ferociouself
ferociouself / appspec.yml
Created February 6, 2018 22:21
AppSpec used by CodeDeploy for a Django application.
version: 0.0
os: linux
files:
- source: /
destination: /var/www/html
permissions:
- object: /home/ec2-user/www
pattern: "**"
owner: ec2-user
group: ec2-user
@ferociouself
ferociouself / Ekis_Encryption.md
Last active May 10, 2017 01:19
A description of the method of encryption that I used for a class project, involving the combination of a stream cipher and RSA encryption.

Multi-Layer Encryption for Secure File Transfer

Necessary Disclaimer

So, full disclosure, I'm pretty much a novice when it comes to cryptography. In doing some quick research, it seems that stream ciphers are malleable, thus meaning that any data stored could potentially be changed (if the attacker knows the format of the file), even without the attacker knowing the key used to encrypt the data. In addition, I used ARC-4 in my original implementation, which has been shown to have some severe vulnerabilities. If I were to do it again, I would probably use AES-OFB, which seems significantly more secure upon some slight research. I would also take a look at [this answer on Stack