This document contains a Java class named 'Encryption' that implements a Caesar Shift cipher for encrypting text. The method 'encryptMessage' takes a message and a shift key as inputs, shifting each letter by the specified key while leaving non-letter characters unchanged. The encryption is performed using a predefined alphabet of uppercase letters.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views1 page
Encryption
This document contains a Java class named 'Encryption' that implements a Caesar Shift cipher for encrypting text. The method 'encryptMessage' takes a message and a shift key as inputs, shifting each letter by the specified key while leaving non-letter characters unchanged. The encryption is performed using a predefined alphabet of uppercase letters.