aboutsummaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
Diffstat (limited to 'README.org')
-rw-r--r--README.org33
1 files changed, 33 insertions, 0 deletions
diff --git a/README.org b/README.org
new file mode 100644
index 0000000..a7b5819
--- /dev/null
+++ b/README.org
@@ -0,0 +1,33 @@
1#+title: File processing in Haskell
2#+subtitle: Steganography
3#+date: 2024H2
4
5* Task
6:PROPERTIES:
7:CUSTOM_ID: task
8:END:
9Create a project in stack. Write all pure functions to the library
10=Lib.hs= and restrict access to auxiliary functions. Use do notation to
11work with external files. Find a portrait of Pauli Wolfgang. Convert
12the image to the =.bmp= format (24‑bit). Save to a file in the =.txt=
13format: a fragment of his biography (at least 1000 characters without
14spaces; the text should not end in the middle of a word or sentence).
15Encode the text into an image using the Caesar cipher (the shift is
16specified by the user). The key to the cipher is written in the file
17name. Write a function that decodes the text from the image using the
18key from the file name and saves the result to a separate text file.
19Create functions that encrypt the text in the last bit of each byte,
20the last two bits of each byte, …, all the bits in a byte. Provide
21examples of image distortions in the report.
22
23* Documentation
24:PROPERTIES:
25:CUSTOM_ID: documentation
26:END:
27The exported report can be found at [[https://git.michalec.dev/files/uni/term-05/func-prog/lab-03/report.pdf][this link]].
28
29* Unlicense
30:PROPERTIES:
31:CUSTOM_ID: unlicense
32:END:
33#+include: UNLICENSE verse