Skip to content

Commit

Permalink
Added some notes regarding the code
Browse files Browse the repository at this point in the history
  • Loading branch information
terragou committed Sep 7, 2013
1 parent df467a8 commit 52baa24
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions duck.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void Duckfile(FILE * fptr_in, FILE * fptr_out){
char duck_key[64];
srand(time(NULL));

printf("\nPlease specify the Ducking-Key (512 bits): ");
printf("\nPlease specify the Ducking-Key (512 bits): "); //TODO: Key is not actually used yet in this version
scanf("%s",duck_key);


Expand Down Expand Up @@ -99,7 +99,7 @@ void Duckfile(FILE * fptr_in, FILE * fptr_out){


int writebit = getBitFromByte(i, block);
int FLIP_THIS_BIT = rand() % 2;
int FLIP_THIS_BIT = rand() % 2; //Using rand for now, if this is a fixed key 'reverse-ducking' would work

if(FLIP_THIS_BIT){
//If the Ducking-Key tells you to duck this bit, do it
Expand Down
Binary file modified file.test.duckman
Binary file not shown.
Binary file added file.test.duckman.duckman
Binary file not shown.
Binary file added file.test.duckman.duckman.duckman
Binary file not shown.
4 changes: 4 additions & 0 deletions file.test.duckman.duckman.duckman.duckman
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
����݌�a:ؐ>F�Ѿ�ư%u�;�L6�).�B�'��K߉u��o�^d�+��=�.����
�ʦny�΄~�
NbCT�r�vt������f�Nk��8�B��z�����&���(�*9�-�] -���K�7��Q�D�/� Y]
xJ�����7;qK��NQ�3!9b�K���}R�;j��DN� BM��x��W^=��ȁ�R \�硅���;� Hr�.�U<ʔ���]��3�ג�hV���wz�Ć}{���b�Qi���)��GذQ2��v]Nf���OZ45ag_�X�7�5�*O��w�xW{m>�t���~L�}� p��j���z`�ͨvf�a@��Y�j�7o��Ϧw@q��׮�B9�3
Expand Down

0 comments on commit 52baa24

Please sign in to comment.