Uploading Changes
+- EncryptionUtility.c +- PA01_Main
This commit is contained in:
parent
40e0bfd79a
commit
4b87557bcf
3 changed files with 55 additions and 26 deletions
|
|
@ -12,20 +12,19 @@
|
|||
// program
|
||||
int main( int argc, char *args[] )
|
||||
{
|
||||
srand( time( NULL ) ); //temp
|
||||
int charNum;
|
||||
char* string = "MyStringLengthThing";
|
||||
charNum = findStringLength(string);
|
||||
printf("String Length: %d\n", charNum);
|
||||
int squaredPerfect = 100;
|
||||
int sqRT = findSquareRoot(squaredPerfect);
|
||||
printf("%d's Square Root: %d\n", squaredPerfect, sqRT);
|
||||
int randOne, randTwo, randThree;
|
||||
randOne = getRandomLetterValue();
|
||||
randTwo = getRandomLetterValue();
|
||||
randThree = getRandomLetterValue();
|
||||
printf("Char Test: %d/%c, %d/%c, %d/%c", randOne, (char)randOne, randTwo, (char)randTwo, randThree, (char)randThree);
|
||||
/*
|
||||
// int charNum;
|
||||
// char* string = "MyStringLengthThing";
|
||||
// charNum = findStringLength(string);
|
||||
// printf("String Length: %d\n", charNum);
|
||||
// int squaredPerfect = 100;
|
||||
// int sqRT = findSquareRoot(squaredPerfect);
|
||||
// printf("%d's Square Root: %d\n", squaredPerfect, sqRT);
|
||||
// int randOne, randTwo, randThree;
|
||||
// randOne = getRandomLetterValue();
|
||||
// randTwo = getRandomLetterValue();
|
||||
// randThree = getRandomLetterValue();
|
||||
// printf("Char Test: %d/%c, %d/%c, %d/%c\n\n", randOne, (char)randOne, randTwo, (char)randTwo, randThree, (char)randThree);
|
||||
|
||||
char toEncrypt[ HUGE_STR_LEN ], decryptedStr[ HUGE_STR_LEN ];
|
||||
char fileName[ STD_STR_LEN ], stringFromFile[ HUGE_STR_LEN ];
|
||||
SquareArrayType *encryptedInput, *uploadedInput;
|
||||
|
|
@ -44,10 +43,10 @@ int main( int argc, char *args[] )
|
|||
|
||||
printf( "\nDisplay encryption as characters:\n" );
|
||||
displayArray( *encryptedInput, DISPLAY_CHARS );
|
||||
|
||||
/*
|
||||
printf( "\nDecrypting the input string\n" );
|
||||
decryptData( decryptedStr, encryptedInput );
|
||||
|
||||
|
||||
printf( "\nDecrypted string: %s\n", decryptedStr );
|
||||
|
||||
printf( "\nDownloading encryption\n" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue