Write a java program that encrypt and decrypt some string by adding or removing 2 on each character.

Write a java program that encrypt and decrypt some string by adding or removing 2 on each character.

Write a java program that encrypt and decrypt some string by adding or removing 2 on each character.

Example 1 :

Please Enter Your String : Mamoun

Please Enter Your Choice : 1. Encryption. 2. Decrypt ion. 1

Result of Encryption(Mamoun) is (Ocoqwp)

View Answers

March 9, 2013 at 5:17 PM

hi friend,

Please go through the following link, may this will be helpful for you.

http://www.roseindia.net/answers/viewqa/Java-Beginners/22533-encryption-and-decryption.html

Thanks.









Related Tutorials/Questions & Answers:
Write a java program that encrypt and decrypt some string by adding or removing 2 on each character.
Write a java program that encrypt and decrypt some string by adding or removing 2 on each character.  Write a java program that encrypt and decrypt some string by adding or removing 2 on each character. Example 1 : Please Enter
Removing character from a string in sql.
Removing character from a string in sql.  Removing special characters from a string in sql
Advertisements
Removing character from a string in sql.
Removing character from a string in sql.  How to remove or replace character from a string
write a program in java Adding up the subscript(st,nd,rd,th) to the number of days in a input string
write a program in java Adding up the subscript(st,nd,rd,th) to the number of days in a input string    write a program in java Adding up the subscript(st,nd,rd,th) to the number of days in a input string ex:If a user enters
Split string after each character using regular expression
Split string after each character using regular expression... to split the String after each character using expression. For this we are going to make program named SplittingFind. java. The steps involved in program
Removing HTML from a Java String
Removing HTML from a Java String  Removing HTML from a Java String
c program - Java Beginners
c program  Write a program to encrypt a string and decrypt
Java Remove a character from string
Java Remove a character from string In this tutorial, you will learn how... is: "+st); System.out.println("After removing the character r, string... After removing the character r, string is: Hello Wold
really need help on how to write this program plz some 1 help out. - Java Beginners
really need help on how to write this program plz some 1 help out.  i am confused here on what to write can some 1 help out here i dont quite understand how to code it so can some 1 help out. Part II Write, compile and execute
Removing characters from a string
Removing characters from a string  Removing characters from a string...(String []args){ String str="Hello 123.you are At 3456"; String... replace all character into ?? by using replaceAll() method. trim
write a java program for inserting a substring in to the given main string from a given position
write a java program for inserting a substring in to the given main string from a given position  write a java program for inserting a substring in to the given main string from a given position
Java Write To File From String
Java Write To File From String In this tutorial you will learn how to write to file from string. Write to file from string using java at first we will have... After doing the basic process to execute a java program write simply on command
write a java program
write a java program  write a program to print '*' in a circular form
How to write Java Program
How to write Java Program  how to write a program to find average of 5 student marks
write a program - Java Beginners
write a program  1. write a program that reads a string composed of 6... { public static void main(String[] args) { String str = "hello abc xyz pqr ghf anm"; String strAr[] = str.split(" "); for(int i=0;i
write a program for creating html page with images and 2 buttons
write a program for creating html page with images and 2 buttons  write a program for creating html page with images and 2 buttons
write program - Java Beginners
write program  write a java program that will read the values... main(String[] args) { int array[][] = {{5,6,7},{4,8,9}}; int array1...= array1.length; System.out.println("Matrix 2 : "); for(int i = 0; i < y; i
write the java program?
write the java program?  1 11 121 1331 14641 15101051
write the java program?
write the java program?  1 11 121 1331 14641 15101051
Write java program?
Write java program?  1 11 121 1331 14641 15101051
Write java program?
Write java program?  1 11 121 1331 14641 15101051
Write a program in java...
Write a program in java...  Hi, friends Please, can you help me? Q1: Write a program in java to simulate a calculator. Your program should take two... to enter an integer number. Write a program in java to find the factorial
Write a java application program........?
Write a java application program........?  Welcome every One : I have Q in Java? Q : Write a java application program that reads 20 integer numbers input by the user and prints how many numbers > 100 and how many numbers
write a program in java.
write a program in java.  arrange the natural n umber in 5x5 matrix as 21 22 23 24 25 20 7 8 9 10 19 6 1 2 11 18 5 4 3 12 17 16 15 14 13 i...; public class NumberSpiral{ public static void main(String[] args) { int n=5
2. Given a string and a number ‘n’, find the ‘n’th distinct repeating character.
2. Given a string and a number ?n?, find the ?n?th distinct repeating character.    Given a string and a number ?n?, find the ?n?th distinct repeating character. For example, Input: Abracadabra, 1 Abracadabra, 2 Abracadabra, 3
WRITE A PROGRAM IN JAVA
WRITE A PROGRAM IN JAVA  How do I write a program in Java, have the program display a message with your name in it and a number (Hello john Smith!1...!6 Hello John Smith!5 Hello John Smith!4 Hello John Smith!3 Hello John Smith!2
adding of 2 bite's - Java Interview Questions
adding of 2 bite's  Java Adding of 2 bite's  this through compilation failedhere a+b returns an integer .and u try to assign an integer value to byte.(i.e. narrowing or downcasting)In case of narrowing u have
find all unique character in string using java
find all unique character in string using java  example: hello how are you. output should be waryu
WRITE A PROGRAM IN JAVA
WRITE A PROGRAM IN JAVA  Write program which accepts five students id,name,age,department,courses, taken and its grade. a. calculate its GPA . display all student information in ascending order
String program - Java Beginners
String program  write a program to accept a word. Pass it to the function magic(String x). The function checks the string for the presence... prints it is a magic string otherwise it prints not a magic string.  
plz give me program to this: Given a string and a number ‘n’, find the ‘n’th distinct repeating character.
plz give me program to this: Given a string and a number ?n?, find the ?n?th distinct repeating character.    Given a string and a number ?n?, find the ?n?th distinct repeating character. For example, Input: Abracadabra, 1
object 2 string - Java Beginners
object 2 string  hi sir,how to convert object to string and how 2 compare object with null value to string with null value plz provide a program 4 this sir,plzzzzzzzzz
Decrypt - Java Beginners
Decrypt  How can I modify the file such that the user can enter a cipher text(encrypted) message and a key and my program will decrypt the message. import javax.swing.*; public class Cesar { private String plainText
java string vowel program
java string vowel program  java string vowel program   Please visit the following links: Display the word that begins with vowel Java Count Vowels
Password need to encrypt while inserting into DB and need to decrypt while responding to forgot password
Password need to encrypt while inserting into DB and need to decrypt while responding to forgot password  Hi, I need the functionality in JSP to encrypt the password while inserting into DB and need decrypt logic while
Password need to encrypt while inserting into DB and need to decrypt while responding to forgot password
Password need to encrypt while inserting into DB and need to decrypt while responding to forgot password  Hi, i encrypt password and stored in to DB.but i dont know decrypt that password.plz send the code.in your site link
Write a method which will remove any given character from a string?
Write a method which will remove any given character from a string? In this example we will describe remove any given character from a string... argument. It checks the character you want to remove in the string in a sequence
write a program
write a program  write a program add 2 no.s without use arithmetic,unary operaters in java
java 2 d array program
java 2 d array program  write a program 2-d matrix addition through... java.util.*; class MatrixAddition{ public static void main(String[] args...[][] A = new int[2][2]; int[][] B = new int[2][2]; int[][] C = new int[2][2
Count Characters from the input string Java
Count Characters from the input string of Java In this section, you will learn how to count the occurrence of each character in the string. For this, we have... to count the occurrence of each character of the array.  Here is the code
executing java program with 2 classes
executing java program with 2 classes  how to run a program of java containing more than one class....ex of program is given below.... class C...); } }   Executing java program with 2 classes save the file with D.java
adding some value to new column
adding some value to new column   how to update a column having some value into new column that also have some value i need to add this two value in java using result set we can get all the column data but how to add these value
J2ME count character into string
J2ME count character into string  i am new in J2ME, my problem is how to count character into number, i had been research google for almost 2 days... Next cmd button, next pages will display ans:10 character erm...these 2 days
How to display string or character
How to display string or character  how to print character or a word without using array concept
Replace Character in String
in a given string. To replace a character with the given character in sting first... C:\replace>java Replace Your String before repalce rajesh raju raja... Replace Character in String      
how to write to file from string in Java
how to write to file from string in Java  Hi, Please any one help me for how to write to file from string in Java. I am beginner in Java... string in java? So, then visit this http://www.roseindia.net/java/examples/io
how to write this program? - Java Beginners
how to write this program?  (game:scissor,rock ,paper) A program that plays the sciccor-rock-paper game.Revise the program to let the user continuously play until either the user or the computer wins more than 4 times
count the repeated character in one string
count the repeated character in one string  to find the how character occurrence in one String (for example the string is -java means there is 2... java.util.*; class CountCharacters { public static void main(String[] args) throws
A Program To Reverse Words In String in Java .
A Program To Reverse Words In String in Java .  A Program To Reverse Words In String in Java :- For Example :- Input:- Computer Software Output :- Software Computer
A Program To Reverse Words In String in Java .
A Program To Reverse Words In String in Java .  A Program To Reverse Words In String in Java :- For Example :- Input:- Computer Software Output :- Software Computer

Ads