Skip to content

Commit

Permalink
Encryptor: untangle unclear sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioViva42 committed Aug 11, 2024
1 parent 1ff4331 commit f5e138c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/owasp/esapi/Encryptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ CipherText encrypt(SecretKey key, PlainText plaintext)
* </p>
* @param ciphertext The {@code CipherText} object to be decrypted.
* @return The {@code PlainText} object resulting from decrypting the specified
* ciphertext. Note that it it is desired to convert the returned
* plaintext byte array to a Java String is should be done using
* ciphertext. Note that the returned plaintext byte array
* should be converted to a Java String using
* {@code new String(byte[], "UTF-8");} rather than simply using
* {@code new String(byte[]);} which uses native encoding and may
* not be portable across hardware and/or OS platforms.
Expand All @@ -186,8 +186,8 @@ CipherText encrypt(SecretKey key, PlainText plaintext)
* @param key The {@code SecretKey} to use for encrypting the plaintext.
* @param ciphertext The {@code CipherText} object to be decrypted.
* @return The {@code PlainText} object resulting from decrypting the specified
* ciphertext. Note that it it is desired to convert the returned
* plaintext byte array to a Java String is should be done using
* ciphertext. Note that the returned plaintext byte array
* should be converted to a Java String using
* {@code new String(byte[], "UTF-8");} rather than simply using
* {@code new String(byte[]);} which uses native encoding and may
* not be portable across hardware and/or OS platforms.
Expand Down

0 comments on commit f5e138c

Please sign in to comment.