Question: Use Java, Do not import any packages (only java.lang.*), write public static String encrypt(String input) It encrypts the input string by applying the Atbash cipher

Use Java, Do not import any packages (only java.lang.*), write public static String encrypt(String input) It encrypts the input string by applying the Atbash cipher on letters (both uppercase and lowercase) and reversing the encrypted string, and then returns the reversed encrypted string.

Examples:

Input

Output

abcdefg, hijklmn, OPQRST, UVWXYZ!

!ABCDEF ,GHIJKL ,mnopqrs ,tuvwxyz

ENCRYPT encrypt?

?gkbixmv GKBIXMV

CsE BaSeMeNt >.<

<.> gMvNvHzY VhX

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!