Giter VIP home page Giter VIP logo

caesarcipher1's Introduction

CaesarCipher1

In this project, I realized the ability to encrypt and decrypt text written in English or Ukrainian languages using Caesar Cipher. The Caesar Cipher, used by Julius Caesar around 58 BC, is a substitution cipher that shifts letters in a message to make it unreadable if intercepted. To decrypt, the receiver reverses the shift. Arab mathematician Al-Kindy broke the Caesar Cipher using frequency analysis, which exploits patterns in letter frequencies. The project has been made in a simple way with a minimum of coding. I used a few Classes which implement Interfaces. All the main requirements of the task for the project have been implemented, except next items :

  1. The menu CLI and control of arguments entered by the user;
  2. Brute_force realized based on frequency analysis for the English alphabet only;
  3. Additional task to the project;

I will make it as soon as possible.

caesarcipher1's People

Contributors

boriskosiv avatar

Watchers

 avatar

caesarcipher1's Issues

Review

Hello!

I tested the program manually.

In general, it works, but there are some problems that need to be fixed.

Folders .idea, target should be in the gitignore file.

The brute force algorithm determined the key correctly, but did not create a file with the result.

The result file name should be Hamlet[ENCRYPTED].txt
image

.jar file also shouldn't be in repository. Please put .jar to releases.
image

What happens when this method returns NOTdetected?

public static String detectLanguage(String text) {
int UA_CharsCount = countChars(text, alphabetUA);
int EN_CharCount = countChars(text, alphabetEN);
int maxCount = Math.max(UA_CharsCount, EN_CharCount);
if (maxCount == UA_CharsCount) {
return alphabetUA;
} else if (maxCount == EN_CharCount) {
return alphabetEN;
} else {
return "NOTdetected";
}
}

Everything else was done well. You did a great job and i hope you enjoyed it :)
Try to follow my recommendations and improve your program.

Good luck :)

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.