1. A company that wants to send data over the Internet will usean encryption program to ensure data security. All data will betransmitted as four-digit integers. The application should read afour-digit integer entered by the user and encrypt it as follows: ï‚·Replace each digit with the remainder of the new value divided by10 by adding 6 to the digit. Then replace the number in the firstdigit with the third, and the number in the second digit with thefourth. Print the encrypted integer on the screen. ï‚· Write aseparate application where an encrypted four-digit integer isentered and decrypted (reversing the encryption scheme) and findsthe original number.
Note: code should be written in Java Language.