How to create project RSA Cryptography with JAVA in 3 Steps: Step 3 Process Testing Application Algorithm Encrypt Decrypt
Finally we in the last article. This article will discuss how to connect the User Interface which is made in part1 and process algorithm RSA in part2.
In part1, we have been created the source code User Interface, where the code function the button not working. So therefore we just add functions the button such as button browse file, button reset value, button encrypt and then button decrypt.
Follow the source code below and you guys can compare the source code between part1 with code below
After that, let’s run the code. After the run will be show application user interface below
For the function of the button, we will explain below
- button browse files are functioning for a take file for
process encryption - button reset is functioning for delete data on textbox and table area
- button encrypt is functioning for process encrypt on a file
- and button decrypt is functioning for process decrypt on a file has been previous encrypted
if you press the button browse, and then will be shown this application such as below.
After that, you can be processed encrypt the file and will be such as shown below
After that encrypted file, the file encrypted can be added automatically in a table. If you choose to encrypt the file, you can decrypt the file so that can read the file and be shown such as below
if you button reset, and then value which is in a textbox and table will be reset
Below will be shown for example file after encrypt and decrypt
This article is enough here, hopefully, it is useful. If you want to get this source code, you can clone the source code at the link below
https://github.com/iakurnia/RSA-ALGORITHM.git
See you in the next chapters
About the Author
I love new technology and follow the advancements in the field.
We Can Do It If We Want To Learn and Try.
Feel free to connect with me on my LinkedIn account
https://www.linkedin.com/in/ia-kurnia-a72778114/
Github: https://github.com/iakurnia