Skip to content

Commit f5e138c

Browse files
committed
Encryptor: untangle unclear sentence
1 parent 1ff4331 commit f5e138c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/owasp/esapi/Encryptor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ CipherText encrypt(SecretKey key, PlainText plaintext)
162162
* </p>
163163
* @param ciphertext The {@code CipherText} object to be decrypted.
164164
* @return The {@code PlainText} object resulting from decrypting the specified
165-
* ciphertext. Note that it it is desired to convert the returned
166-
* plaintext byte array to a Java String is should be done using
165+
* ciphertext. Note that the returned plaintext byte array
166+
* should be converted to a Java String using
167167
* {@code new String(byte[], "UTF-8");} rather than simply using
168168
* {@code new String(byte[]);} which uses native encoding and may
169169
* not be portable across hardware and/or OS platforms.
@@ -186,8 +186,8 @@ CipherText encrypt(SecretKey key, PlainText plaintext)
186186
* @param key The {@code SecretKey} to use for encrypting the plaintext.
187187
* @param ciphertext The {@code CipherText} object to be decrypted.
188188
* @return The {@code PlainText} object resulting from decrypting the specified
189-
* ciphertext. Note that it it is desired to convert the returned
190-
* plaintext byte array to a Java String is should be done using
189+
* ciphertext. Note that the returned plaintext byte array
190+
* should be converted to a Java String using
191191
* {@code new String(byte[], "UTF-8");} rather than simply using
192192
* {@code new String(byte[]);} which uses native encoding and may
193193
* not be portable across hardware and/or OS platforms.

0 commit comments

Comments
 (0)