Questions about encryption

0

I'm looking at how encryption works, however, I'm having a question about almost all the cryptography examples examples have a String PlainText, follows the link from one of the post I looked at: link

This post has the following code:

public static String encrypt(String plainText, String password) throws

password would be the password I want to encrypt right?

But what about plainText?

Could anyone explain to me what would be allocated in this plainText?

    
asked by anonymous 15.02.2017 / 17:58

1 answer

1

plaintext is the text you want to encrypt.

While password is the protection key.

To decrypt you will need to use the decrypt function by passing the same password used in the encrypt function as an argument.

    
15.02.2017 / 19:40