Git Product home page Git Product logo

encryption-coding's Introduction

Encryption Coding

SNHU CS-405 5-2 Activity: Encryption Coding

Encryption Coding by Randall Rowland is licensed under CC BY-NC 4.0

Overview

You are a senior software developer on a team of software developers who are responsible for a large banking web application. Your manager has recently discovered that none of the data is encrypted. She is panicking and now wants to put encryption into everything. However, she wants some proof of how it works. Another developer on the team started creating the application to show encryption, but cannot figure out how to load and save files or to do encryption. The task has fallen to you to finish the work.

Prompt

You will learn to do the following:

  • Implement XOR-based encryption character by character across a file of data
  • Implement loading data from a text file into a string
  • Save a string to a text file

The source code has been commented on using TODO to explain the detailed rules you must follow. When implementing XOR encryption, you will need to account for the length of your password key. See the example file in the module resources section. The file format that is loaded and saved is defined in the source code. You must use the format specified for the program to work. You are provided a sample input file to test your program, and you will need to change the data file to complete the assignment. Use the file names defined in the source code file, and don’t forget that you can leverage capabilities provided by the standard C++ library to help you achieve success.

Specifically, you will need to complete the following:

  • Code XOR Encryption: Complete the coding acti vity by successfully implementi ng XOR encrypti on, accounti ng for key lengths.
  • Code the Loading of a Text File: Complete the coding acti vity by successfully implementi ng the logic to read a text file in the specified format into a string in the read_file method.
  • Code the Saving of a Text File: Complete the coding acti vity by successfully implementi ng the logic to save a text file in the specified format in the save_data_file method.
  • Data Files: Create an original data file in the specified data format, produce the encrypted and decrypted data files, and ensure all file names match the source code defined file names.
  • C/C++ Program Functionality and Best Practices: Demonstrate industry standard best practices, including in-line comments and appropriate naming conventions to enhance readability of code. Develop functional C/C++ code that illustrates a software design pattern approach.
  • Process Summary: Provide a summary of the debugging that is thorough and systematic, including specific types of bugs, and accurately describe the corrections.

Build instructions

The timestamp functions require the use of the chrono header and the use of C++ 20. To enable the features on Visual Studio, choose /std::c++latest to ensure the compiler will build the code without errors.

encryption-coding's People

Contributors

rowland007 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.