This file contains hidden or 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
| /** | |
| * Code written by P. Gajland | |
| * https://github.com/GaPhil | |
| * | |
| * IMPORTANT: | |
| * This code is for educational and demonstrative purpose only. | |
| * If you need to do serious encryption for "production" it is | |
| * recommended to investigate more traditional libraries and | |
| * gain some specific knowledge on cryptography and security. | |
| */ |
start off by copying your local files to a remote machine using scp. You can choose one of the servers here
general command: scp <file_name_with_path> <kth_username>@<host>:<path_on_host>
example command: scp <file_name_with_path> bobsmith@avril.sys.ict.kth.se:~/Desktop/engineering-skills
now to check that your files are on the server by connecting via ssh
general command: ssh <kth_username>@<host>
example command: ssh bobsmith@avril.sys.ict.kth.se
This file contains hidden or 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
| #include <time.h> // Robert Nystrom | |
| #include <stdio.h> // @munificentbob | |
| #include <stdlib.h> // for Ginny | |
| #define r return // 2008-2019 | |
| #define l(a, b, c, d) for (i y=a;y\ | |
| <b; y++) for (int x = c; x < d; x++) | |
| typedef int i;const i H=40;const i W | |
| =80;i m[40][80];i g(i x){r rand()%x; | |
| }void cave(i s){i w=g(10)+5;i h=g(6) | |
| +3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u |