Mình đang học java và đang bế tắc vs bài tập này. Mong mọi người định hướng cách giải quyết vấn đề này:
Caesar cipher is a substitution cipher method which was used by Julius Caesar to protect private information from the enemies. By replace each letter in the original letter with a letter some fixed positions down the alphabet, the result is meaningless to anyone who doesn’t know the secret.
Write a program that apply Caesar cipher on a message taken from user and print the result. Assuming all input letters are lower case. The letters shift are provided as below.
Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Cipher: DEFGHIJKLMNOPQRSTUVWXYZABC
E.g. Original message: hello world
Encrypted message: khoor zruog


83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?