Git Product home page Git Product logo

task1-2_cryptography_nt219.o11.antn's Introduction

Task1-2_Cryptography_NT219.O11.ANTN

Task 1: Coding DES, AES using cryptopp library

A. Required:

+) Mode of operations:

  • Select mode from screen (using switch case)
  • Support modes: ECB, CBC, OFB, CFB, CTR, XTS, CCM, GCM.

+) separate encryption function from decryption function:

Select from screen (using switch case)

+) inputs:

  • Secret key, Initialization Vector IV, and nonce,..
  • Select from screen (using switch case)

Case 1: Secret key and IV are randomly chosen for each run time using random generator using CryptoPP::AutoSeededRandomPool;

Case 2: Input Secret Key and IV from screen

Case 3: Input Secret Key and IV from file (using file name)

  • Plaintext

    Case 1: Input from screen;

    Case 2: From files (using file name);

  • Support Vietnamse (using setmode, UTF-16)

  • Ciphertext

    Case 1: Input from screen;

    Case 2: From files (using file name);

    • Support Vietnamse (using setmode, UTF-16)

+) Ouputs (hex or base64 encode, binary):

  • display in screen;

  • write to file;

Task 2: Coding AES using only C++ without other cryptographic external libraries;

Required:

+) Plaintext:

  • Input from screen;
  • Support Vietnamese (using _setmode, UTF-16)

+) Mode of operations

Using CBC mode

+) Secret key and Initialization Vector (IV)

Input Secret Key and IV from screen

Note for task 1, task 2 inmplemetation in order

  1. modes?
  2. encryption or decryption?
  3. inputs?
  4. ouputs?

Comparision running time in task1 between Windows and Ubuntu

image

image

task1-2_cryptography_nt219.o11.antn's People

Contributors

tvdat20004 avatar

Watchers

 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.