Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main(){
- char key[65];
- FILE *pipe;
- pipe=popen("openssl rand -hex 33","r");
- fgets(key, 65, pipe);
- fclose(pipe);
- char opensslCommand[100]="openssl enc -e -aes-128-cbc -in clipboard.txt -out cifrado.aes -iv 0 -k ";
- printf("%s\n",opensslCommand);
- strcat(opensslCommand,key);
- printf("%s",opensslCommand);
- system(opensslCommand);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement