#RSA File De- and Encryption Docu for encrypt and decrypt a large file with AES and RSA
##Keypairs
###Generate RSA Keypairs
//generates a private Key with 8196 Bit
openssl genrsa -out private.pem 8196
| #!/bin/bash | |
| # Origin: http://askubuntu.com/a/562191 | |
| # required: wmctrl | |
| app=$1 | |
| workspace=$(wmctrl -d | grep '\*' | cut -d ' ' -f1) | |
| win_list=$(wmctrl -lx | grep $app | grep " $workspace " | awk '{print $1}') | |
| IDs=$(xprop -root|grep "^_NET_CLIENT_LIST_STACKING" | tr "," " ") |
| description "Remounting shared folder d:\www from windows7 with virtualbox. | |
| Solving permission problems. | |
| Origin: http://superuser.com/questions/527963/how-to-allow-nginx-in-guest-vm-access-shared-folders-in-host-os" | |
| start on starting | |
| task | |
| exec mount -t vboxsf www -o rw,dmode=777,gid=1000,uid=1000 /home/user/shared_www |
| # truetamtam | |
| # PS1 for debian set in /etc/bash.bashrc | |
| # PS1='${debian_chroot:+($debian_chroot)}\[\e[1;32m\][\u@\h: \w]\$\[\e[0m\] ' | |
| # vim options set in /etc/vim/vimrc | |
| alias vg='vagrant' | |
| alias hs='homestead' | |
| alias cm='composer' | |
| alias dc='docker-compose' | |
| alias d='docker' | |
| alias dm='docker-machine' |
| #!/usr/bin/env bash | |
| # | |
| # Example of multiple key AES encryption for text files using the openssl v. 0.9.8+ command line utility | |
| # Uses n public certs as key for MIME PKCS envelope, any individual private key can decrypt. | |
| # | |
| # If standard RSA ssh keys exist, these can be converted to public certs as well (and ssh keys can decrypt) | |
| # | |
| # To sign (and verify) the encrypted file, one of the private keys is required, see: | |
| # http://www.openssl.org/docs/apps/smime.html#EXAMPLES for openssl smime examples | |
| # or http://www.openssl.org/docs/apps/cms.html#EXAMPLES for cms utility (OpenSSL v. 1.0+) |
#RSA File De- and Encryption Docu for encrypt and decrypt a large file with AES and RSA
##Keypairs
###Generate RSA Keypairs
//generates a private Key with 8196 Bit
openssl genrsa -out private.pem 8196
| #!/bin/sh | |
| # If you would like to do some extra provisioning you may | |
| # add any commands you wish to this file and they will | |
| # be run after the Homestead machine is provisioned. | |
| echo "Updating machine software" | |
| locale-gen en_GB.UTF-8 | |
| # Updating composer |
| server { | |
| listen 80; | |
| server_name wbs; | |
| root /var/www/wbs; | |
| <!DOCTYPE html> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
| <title>html5 webgl test project</title> | |
| <style type="text/css"> | |
| body { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |