Nt1310 Unit 5 Essay

Improved Essays
#include /*input and output */
#include /* printf, NULL */
#include /* srand, rand */
#include /* time */
#include /* file operations */
#include /* symbolic constants */

using namespace std;

int Gen(int length)
{
cout << "******************Attempting to write key to file*******************\n"<< endl; int randomData = open("/dev/random", O_RDONLY); // open file to get random values char myRandomData[length]; //determine the length of the key size_t randomDataLen = 0;// initialize counter while (randomDataLen < sizeof myRandomData) //read from file while key length is not larger than size of plain text { ssize_t result = read(randomData, myRandomData + randomDataLen, (sizeof
…show more content…
Please check to ensure that the file exists and is in the directory of this message."; exit(0); } /*Attempting to open key*/ string key; ifstream keyfile ("keyfile"); // attempt to open the file if (keyfile.is_open()) //ensure file open was successful { while ( getline (keyfile,line) ) //for each line in the file { key+=line; // append the line to the variable to hold the message } keyfile.close();// close the file }

else //if file open operation was unsuccessful output an error message to the user and
…show more content…
The key is stored in a file called keyfile" << endl; /*Open the file and determine the length of the plaintext to determine the length of the key */ string line; //variable to hold each line of the file as it is read string plaintext; //variable to hold the message to be encrypted int length; //variable to hold the length of the key ifstream myfile ("plaintext"); // attempt to open the file if (myfile.is_open()) //ensure file open was successful { while ( getline (myfile,line) ) //for each line in the file { plaintext+=line; // append the line to the variable to hold the message

Related Documents

  • Decent Essays

    Nt1310 Unit 2 Essay

    • 368 Words
    • 2 Pages

    1. Rack and wall mountable connector housings shall accept an interchangeable connector panel. An adapter panel is defined as a modular removable plate containing optical fiber connector adapters. 2.…

    • 368 Words
    • 2 Pages
    Decent Essays
  • Decent Essays

    The Aegis Secure Key 3.0 has military grade full disk AES 256-bit XTS hardware encryption and is FIPS 140-2 Level 3 validated. You unlock the drive by entering your 7-16 digit PIN before you connect it to your device that way hackers cannot use software on your device to capture your password, and it automatically locks when you unplug it. If an incorrect password is typed 20 consecutive times all the data and the encryption key are erased. It is also dust and water resistant as well as a wear resistant keypad to hide key usage and to help prevent hackers from knowing the commonly used keys. This USB is a Super Speed USB 3.0 that has data transfer rates of 195 for read and 162 for write.…

    • 351 Words
    • 2 Pages
    Decent Essays
  • Improved Essays

    Nt1330 Unit 5 Essay

    • 596 Words
    • 3 Pages

    5.10 A user level program can disable the timer interrupt and prevent context switching from taking place if it is given the ability to disable interrupts. This also allows it to use the processor without letting other processes execute. 5.11 It depends on how interrupts are implemented, but regardless, it is not a good choice of techniques.…

    • 596 Words
    • 3 Pages
    Improved Essays
  • Decent Essays

    Nt1310 Unit 3 Essay

    • 195 Words
    • 1 Pages

    1.Check if all the keys- characters, numeric, function, special characters and arrow keys are present 2.Verify the ordering of the keys is as per the QWERTY standard 3.Check the functioning of each type of key-characters, numeric, function, special characters and arrow keys 4.Verify the working of the keys that work in combination like- shift+{other keys} 5.Check if the dimension of the key is as per the specification 6.Check the color of both keyboard body as well as the text written over the buttons 7.Check if the font type and size is as per the specification and legible 8.Check if the pressure required to press a key is not too high 9.Check the spacing between two keys, keys should not be congested and at the same time not too widely placed…

    • 195 Words
    • 1 Pages
    Decent Essays
  • Decent Essays

    The Pangu 9 jailbreak is now out for those of you running the latest iOS 9.0.2 software update. You can follow the guide for jailbreaking with Pangu 9 on every device that can run the iOS 9.0.2 firmware. You can catch that completely list available from the requirements section below. Those with anything under the iPhone 4S cannot follow this guide, just like they cannot update to any version of iOS 9. REQUIREMENTS…

    • 516 Words
    • 3 Pages
    Decent Essays
  • Decent Essays

    I have to agree with you that waterway ports are the busiest at the same time I do not believe that are the hardest to secure. Living here in Jacksonville, FL I have several ports around me. There is Jacksonville Port Authority (Jaxport) that controls three cargo terminals, a cruise terminal and an intermodal rail terminal. Blount Island (controlled by the Marines) is one terminal that I am familiar with because of the military. This facility has some of the tightest security even more than some operational bases.…

    • 455 Words
    • 2 Pages
    Decent Essays
  • Decent Essays

    Nt1310 Final Exam

    • 205 Words
    • 1 Pages

    1. A provider is assessing a 35-year-old patient woman who complains of having tremors in bilateral hands and has been having difficulty writing. She states, “it is like I can’t get my hands to do what I want”. She states her mother had Parkinson disease and is worried she may have as well.…

    • 205 Words
    • 1 Pages
    Decent Essays
  • Great Essays

    Data Communication and Net-Centric Computing (COSC 2061) Assignment 2 Student Name: Weibin Zhong Number: s3503887 Introduction This report is identifying what are FDMA, TDMA and CDMA and how to maintain the communication seamlessly and the roaming service as well as the cost of roaming service. Furthermore, the 1G, 2G, 3G and 4G generations will be discussed.…

    • 1458 Words
    • 6 Pages
    Great Essays
  • Improved Essays

    ASSIGNMENT QUESTIONS: 1. What is the regulation or law that you would propose? Be very specific in the wording. (This will be your own idea and written in your own words). (20 points) Answer:…

    • 672 Words
    • 3 Pages
    Improved Essays
  • Decent Essays

    • Authentication- this domain controller is made only for routine security processes. Due to this, it can perform these processes much faster than another server that is busy running programs and processing resources. Using a domain controller makes it easier for a user to access the domain and network, and the time savings are often rather large if this is used across a big network. Resource Authentication.…

    • 484 Words
    • 2 Pages
    Decent Essays
  • Improved Essays

    Sfas 142 Essay

    • 765 Words
    • 4 Pages

    Impacts of the Adoption of SFAS 142 Goodwill Before SFAS 142 took effect in 2001, goodwill resulted from an acquisition, and it could be amortized for up to 40 years. Since amortization expenses were recorded in the income statement, they affected a company’s earnings. As a result, many companies used the maximum 40 years to minimize the effects of the amortization expenses on the income statements. What is more, management could intentionally inflate the goodwill value in the balance sheet by only taking a few depreciation expenses for each period. Issues arising from the old goodwill treatment could have an adverse effect on shareholders' value, especially those acquisitions driven by managerial ego or other reasons.…

    • 765 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Phen375 Essay

    • 467 Words
    • 2 Pages

    Phen375 is one of the most popular and rapidly growing weight loss products on the market. But does it live up to expectations? Should you be worried about a Phen375 scam? And can it really help you to lose weight faster than other products? Other Phen375 reviews strongly recommend this product, but let’s see whether it can match up to the hype.…

    • 467 Words
    • 2 Pages
    Improved Essays
  • Great Essays

    Cs5020 Final Report Essay

    • 1017 Words
    • 5 Pages

    CS5020: INTERNSHIP IN CS FINAL REPORT Dr. Xiaodong Yue Professor of Computer Science, Chair, University of Central Missouri. Warrensburg. Hello professor, I am Shravya Sree Gadde with student ID #700608825.…

    • 1017 Words
    • 5 Pages
    Great Essays
  • Superior Essays

    unit 205Outcome 1 Know the different types of schools in the education system 1.1 There are two types of schools: Independent schools which rely on fees, have their own entrance exams and follow their own curriculum. Types of Independent Schools: Preparatory School All-Through School Public School Independent Grammar School State schools are run by the government, receive funding and have a set curriculum: Types of State Schools: Grammar Academies Community Trust Free Specialist Voluntary 1.2 Independent schools rely on fees and money from investments they don’t receive government funding. They will have an entrance exam and they also devise their own curriculum framework.…

    • 1136 Words
    • 5 Pages
    Superior Essays
  • Improved Essays

    UCO Reflection Essay

    • 1477 Words
    • 6 Pages

    The current situation from my personal experiences at UCO and our Forensics Institute is that we as Forensics students are very lucky with our facility. We have a nice modern building with many useful amenities. We have a well versed and brilliant faculty and staff and the students to match. The one downfall I have noticed comes along with our building. Yes it is useful but through much of the day it is quiet and empty.…

    • 1477 Words
    • 6 Pages
    Improved Essays