Skip to content

Commit dacc30f

Browse files
Add JavaDoc
1 parent 8b83cac commit dacc30f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/src/main/java/org/vonderheidt/hips/utils/Steganography.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ import org.vonderheidt.hips.data.Settings
88
object Steganography {
99
/**
1010
* Function to encode secret message into cover text using given context.
11+
*
12+
* @param context The context to encode the secret message with.
13+
* @param secretMessage The secret message to be encoded.
14+
* @param conversionMode Conversion mode, determined by Settings object.
15+
* @param steganographyMode Steganography mode, determined by Settings object.
16+
* @return A cover text containing the secret message.
1117
*/
1218
suspend fun encode(
1319
context: String,
@@ -39,6 +45,12 @@ object Steganography {
3945

4046
/**
4147
* Function to decode secret message from cover text using given context.
48+
*
49+
* @param context The context to decode the cover text with.
50+
* @param coverText The cover text containing a secret message.
51+
* @param conversionMode Conversion mode, determined by Settings object.
52+
* @param steganographyMode Steganography mode, determined by Settings object.
53+
* @return The secret message.
4254
*/
4355
suspend fun decode(
4456
context: String,

0 commit comments

Comments
 (0)