C# How To Program 5.41: Enforcing Privacy with Cryptography PART 1 – Creating C# Base Class Constructor

Share it with your friends Like

Thanks! Share it with your friends!

Close

Visual C# 2012 How To Program
In this video we create a base class with C# base class constructor, properties and methods that will be later inherited by other classes.

A company that wants to send data over the Internet has asked you to write a program that will
encrypt it so that it may be transmitted more securely.
All the data is transmitted as four-digit integers. Your app should read a four-digit integer
entered by the user and encrypt it as follows:
Replace each digit with the result of adding 7 to the digit and getting the remainder after dividing the new value by 10.
Then swap the first digit with the third, and swap the second digit with the fourth.
Then display the encrypted integer.
Write a separate app that inputs an encrypted four-digit integer and decrypts it (by reversing the encryption scheme) to form the original number. Use the format specifier D4 to display the encrypted value in case the number starts with a 0.

WATCH PART 2: C# Inheritance and Methods

WATCH PART 3: C# Object Instantiation

DOWNLOAD SOURCE FILES: yt-5-41-PrivacyWithCryptography

Comments

[…] C# How To Program 5.41: Enforcing Privacy with Cryptography PART 1 – Creating C# Base Class Co… […]

Write a comment

*