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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
rm -rf /var/www/html/* | |
rm -rf /home/ec2-user/www/* | |
rm -rf /home/ec2-user/installation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.0 | |
os: linux | |
files: | |
- source: / | |
destination: /var/www/html | |
permissions: | |
- object: /home/ec2-user/www | |
pattern: "**" | |
owner: ec2-user | |
group: ec2-user |