Debian Codegraph @

po/pl/man3/encrypt.3.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Andrzej Krzysztofowicz <[email protected]>, 2001.
5 # Michał Kułach <[email protected]>, 2024, 2025.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
10 "PO-Revision-Date: 2025-04-07 20:37+0200\n"
11 "Last-Translator: Michał Kułach <[email protected]>\n"
12 "Language-Team: Polish <[email protected]>\n"
13 "Language: pl\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
18 "|| n%100>=20) ? 1 : 2);\n"
19 "X-Generator: Lokalize 22.12.3\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "encrypt"
26 msgstr "encrypt"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 lutego 2026 r."
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.18"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NAZWA"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "encrypt, setkey, encrypt_r, setkey_r - encrypt 64-bit messages"
52 msgstr "encrypt, setkey, encrypt_r, setkey_r - szyfruje komunikaty 64-bitowe"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "BIBLIOTEKA"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Password hashing library (I<libcrypt>,\\ I<-lcrypt>)"
65 msgstr "Biblioteka szyfrowania haseł (I<libcrypt>,\\ I<-lcrypt>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "SKŁADNIA"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid ""
79 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
80 "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr ""
82 "B<#define _XOPEN_SOURCE> /* Patrz feature_test_macros(7) */\n"
83 "B<#include E<lt>unistd.hE<gt>>\n"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "B<[[deprecated]] void encrypt(char >I<block>B<[64], int >I<edflag>B<);>\n"
90 msgstr "B<[[przestarzałe]] void encrypt(char >I<block>B<[64], int >I<edflag>B<);>\n"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid ""
97 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
98 "B<#include E<lt>stdlib.hE<gt>>\n"
99 msgstr ""
100 "B<#define _XOPEN_SOURCE> /* Patrz feature_test_macros(7) */\n"
101 "B<#include E<lt>stdlib.hE<gt>>\n"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid "B<[[deprecated]] void setkey(const char *>I<key>B<);>\n"
108 msgstr "B<[[przestarzałe]] void setkey(const char *>I<key>B<);>\n"
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, no-wrap
114 msgid ""
115 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
116 "B<#include E<lt>crypt.hE<gt>>\n"
117 msgstr ""
118 "B<#define _GNU_SOURCE> /* Patrz feature_test_macros(7) */\n"
119 "B<#include E<lt>crypt.hE<gt>>\n"
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid ""
126 "B<[[deprecated]] void setkey_r(const char *>I<key>B<, struct crypt_data *>I<data>B<);>\n"
127 "B<[[deprecated]] void encrypt_r(char *>I<block>B<, int >I<edflag>B<,>\n"
128 "B< struct crypt_data *>I<data>B<);>\n"
129 msgstr ""
130 "B<[[przestarzałe]] void setkey_r(const char *>I<key>B<, struct crypt_data *>I<data>B<);>\n"
131 "B<[[przestarzałe]] void encrypt_r(char *>I<block>B<, int >I<edflag>B<,>\n"
132 "B< struct crypt_data *>I<data>B<);>\n"
133
134 #. type: SH
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, no-wrap
138 msgid "DESCRIPTION"
139 msgstr "OPIS"
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "These functions encrypt and decrypt 64-bit messages. The B<setkey>() "
146 "function sets the key used by B<encrypt>(). The I<key> argument used here "
147 "is an array of 64 bytes, each of which has numerical value 1 or 0. The "
148 "bytes key[n] where n=8*i-1 are ignored, so that the effective key length is "
149 "56 bits."
150 msgstr ""
151 "Funkcje te szyfrują i rozszyfrowują 64-bitowe komunikaty. Funkcja "
152 "B<setkey>() ustawia klucz używany przez B<encrypt>(). Używany tu argument "
153 "I<key> jest tablicą 64 bajtów, z których każdy ma wartość numeryczną 1 lub "
154 "0. Bajty key[n], gdzie n=8*i-1, są ignorowane tak, że efektywna długość "
155 "klucza to 56 bitów."
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "The B<encrypt>() function modifies the passed buffer, encoding if I<edflag> "
162 "is 0, and decoding if 1 is being passed. Like the I<key> argument, also "
163 "I<block> is a bit vector representation of the actual value that is "
164 "encoded. The result is returned in that same vector."
165 msgstr ""
166 "Funkcja B<encrypt>() modyfikuje przekazany bufor, szyfrując go jeśli "
167 "I<edflag> wynosi 0 i rozszyfrowując, jeśli wynosi 1. Podobnie jak przy "
168 "argumencie I<key> również I<block> jest reprezentacją wektora bitów "
169 "rzeczywistej wartości, która jest szyfrowana. Wynik jest zwracany w tym "
170 "samym wektorze."
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "These two functions are not reentrant, that is, the key data is kept in "
177 "static storage. The functions B<setkey_r>() and B<encrypt_r>() are the "
178 "reentrant versions. They use the following structure to hold the key data:"
179 msgstr ""
180 "Te dwie funkcje nie są wielobieżne tj. dane klucza są przechowywane "
181 "statycznie. Wariantami wielobieżnymi są funkcje B<setkey_r>() i "
182 "B<encrypt_r>(). Używają one następującej struktury do przechowywania danych "
183 "klucza:"
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid ""
190 "struct crypt_data {\n"
191 " char keysched[16 * 8];\n"
192 " char sb0[32768];\n"
193 " char sb1[32768];\n"
194 " char sb2[32768];\n"
195 " char sb3[32768];\n"
196 " char crypt_3_buf[14];\n"
197 " char current_salt[2];\n"
198 " long current_saltbits;\n"
199 " int direction;\n"
200 " int initialized;\n"
201 "};\n"
202 msgstr ""
203 "struct crypt_data {\n"
204 " char keysched[16 * 8];\n"
205 " char sb0[32768];\n"
206 " char sb1[32768];\n"
207 " char sb2[32768];\n"
208 " char sb3[32768];\n"
209 " char crypt_3_buf[14];\n"
210 " char current_salt[2];\n"
211 " long current_saltbits;\n"
212 " int direction;\n"
213 " int initialized;\n"
214 "};\n"
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid "Before calling B<setkey_r>() set I<data-E<gt>initialized> to zero."
220 msgstr ""
221 "Przed wywołaniem B<setkey_r>() należy ustawić I<data-E<gt>initialized> na "
222 "zero."
223
224 #. type: SH
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "RETURN VALUE"
229 msgstr "WARTOŚĆ ZWRACANA"
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid "These functions do not return any value."
235 msgstr "Funkcje te nie zwracają żadnej wartości."
236
237 #. type: SH
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, no-wrap
241 msgid "ERRORS"
242 msgstr "BŁĘDY"
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid ""
248 "Set I<errno> to zero before calling the above functions. On success, "
249 "I<errno> is unchanged."
250 msgstr ""
251 "Należy ustawić I<errno> na zero przed wywołaniem powyższych funkcji. W razie "
252 "powodzenia, I<errno> nie jest zmieniane."
253
254 #. type: TP
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "B<ENOSYS>"
259 msgstr "B<ENOSYS>"
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "The function is not provided. (For example because of former USA export "
266 "restrictions.)"
267 msgstr ""
268 "Funkcja nie jest dostępna (np. ze względu na dawne ograniczenia eksportowe "
269 "Stanów Zjednoczonych)."
270
271 #. type: SH
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "ATTRIBUTES"
276 msgstr "ATRYBUTY"
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid ""
282 "For an explanation of the terms used in this section, see B<attributes>(7)."
283 msgstr ""
284 "Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku "
285 "B<attributes>(7)."
286
287 #. type: tbl table
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "Interface"
292 msgstr "Interfejs"
293
294 #. type: tbl table
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "Attribute"
299 msgstr "Atrybut"
300
301 #. type: tbl table
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 #, no-wrap
305 msgid "Value"
306 msgstr "Wartość"
307
308 #. type: tbl table
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid ".na\n"
313 msgstr ".na\n"
314
315 #. type: tbl table
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid ".nh\n"
320 msgstr ".nh\n"
321
322 #. type: tbl table
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid ""
327 "B<encrypt>(),\n"
328 "B<setkey>()"
329 msgstr ""
330 "B<encrypt>(),\n"
331 "B<setkey>()"
332
333 #. type: tbl table
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, no-wrap
337 msgid "Thread safety"
338 msgstr "Bezpieczeństwo wątkowe"
339
340 #. type: tbl table
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "MT-Unsafe race:crypt"
345 msgstr "MT-niebezpieczne race:crypt"
346
347 #. type: tbl table
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid ""
352 "B<encrypt_r>(),\n"
353 "B<setkey_r>()"
354 msgstr ""
355 "B<encrypt_r>(),\n"
356 "B<setkey_r>()"
357
358 #. type: tbl table
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "MT-Safe"
363 msgstr "MT-bezpieczne"
364
365 #. type: SH
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "STANDARDS"
370 msgstr "STANDARDY"
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "B<encrypt>()"
377 msgstr "B<encrypt>()"
378
379 #. type: TQ
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "B<setkey>()"
384 msgstr "B<setkey>()"
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid "POSIX.1-2008."
390 msgstr "POSIX.1-2008."
391
392 #. type: TP
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "B<encrypt_r>()"
397 msgstr "B<encrypt_r>()"
398
399 #. type: TQ
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "B<setkey_r>()"
404 msgstr "B<setkey_r>()"
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid "None."
410 msgstr "Brak."
411
412 #. type: SH
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "HISTORY"
417 msgstr "HISTORIA"
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid "Removed in glibc 2.28."
423 msgstr "Usunięte w glibc 2.28."
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid ""
429 "Because they employ the DES block cipher, which is no longer considered "
430 "secure, these functions were removed from glibc. Applications should switch "
431 "to a modern cryptography library, such as B<libgcrypt>."
432 msgstr ""
433 "Ze względu na korzystanie z szyfru blokowego DES, który nie jest już uważany "
434 "za bezpieczny, funkcje te usunięto z glibc. Aplikacje powinny obecnie "
435 "korzystać ze współczesnej biblioteki kryptograficznej, takiej jak "
436 "B<libgcrypt>."
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 msgid "POSIX.1-2001, SUS, SVr4."
442 msgstr "POSIX.1-2001, SUS, SVr4."
443
444 #. type: SS
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "Availability in glibc"
449 msgstr "Dostępność w glibc"
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid "See B<crypt>(3)."
455 msgstr "Zobacz B<crypt>(3)."
456
457 #. type: SS
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "Features in glibc"
462 msgstr "Funkcjonalność w glibc"
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid "In glibc 2.2, these functions use the DES algorithm."
468 msgstr "W glibc 2.2, funkcje te korzystają z algorytmu DES."
469
470 #. type: SH
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, no-wrap
474 msgid "EXAMPLES"
475 msgstr "PRZYKŁADY"
476
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid ""
482 "#define _XOPEN_SOURCE\n"
483 "#include E<lt>crypt.hE<gt>\n"
484 "#include E<lt>stdio.hE<gt>\n"
485 "#include E<lt>stdlib.hE<gt>\n"
486 "#include E<lt>unistd.hE<gt>\n"
487 "\\&\n"
488 "int\n"
489 "main(void)\n"
490 "{\n"
491 " char key[64];\n"
492 " char orig[9] = \"eggplant\";\n"
493 " char buf[64];\n"
494 " char txt[9];\n"
495 "\\&\n"
496 " for (size_t i = 0; i E<lt> 64; i++) {\n"
497 " key[i] = rand() & 1;\n"
498 " }\n"
499 "\\&\n"
500 " for (size_t i = 0; i E<lt> 8; i++) {\n"
501 " for (size_t j = 0; j E<lt> 8; j++) {\n"
502 " buf[i * 8 + j] = orig[i] E<gt>E<gt> j & 1;\n"
503 " }\n"
504 " setkey(key);\n"
505 " }\n"
506 " printf(\"Before encrypting: %s\\[rs]n\", orig);\n"
507 "\\&\n"
508 " encrypt(buf, 0);\n"
509 " for (size_t i = 0; i E<lt> 8; i++) {\n"
510 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
511 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
512 " }\n"
513 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
514 " }\n"
515 " printf(\"After encrypting: %s\\[rs]n\", txt);\n"
516 "\\&\n"
517 " encrypt(buf, 1);\n"
518 " for (size_t i = 0; i E<lt> 8; i++) {\n"
519 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
520 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
521 " }\n"
522 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
523 " }\n"
524 " printf(\"After decrypting: %s\\[rs]n\", txt);\n"
525 " exit(EXIT_SUCCESS);\n"
526 "}\n"
527 msgstr ""
528 "#define _XOPEN_SOURCE\n"
529 "#include E<lt>crypt.hE<gt>\n"
530 "#include E<lt>stdio.hE<gt>\n"
531 "#include E<lt>stdlib.hE<gt>\n"
532 "#include E<lt>unistd.hE<gt>\n"
533 "\\&\n"
534 "int\n"
535 "main(void)\n"
536 "{\n"
537 " char key[64];\n"
538 " char orig[9] = \"eggplant\";\n"
539 " char buf[64];\n"
540 " char txt[9];\n"
541 "\\&\n"
542 " for (size_t i = 0; i E<lt> 64; i++) {\n"
543 " key[i] = rand() & 1;\n"
544 " }\n"
545 "\\&\n"
546 " for (size_t i = 0; i E<lt> 8; i++) {\n"
547 " for (size_t j = 0; j E<lt> 8; j++) {\n"
548 " buf[i * 8 + j] = orig[i] E<gt>E<gt> j & 1;\n"
549 " }\n"
550 " setkey(key);\n"
551 " }\n"
552 " printf(\"Przed szyfrowaniem: %s\\[rs]n\", orig);\n"
553 "\\&\n"
554 " encrypt(buf, 0);\n"
555 " for (size_t i = 0; i E<lt> 8; i++) {\n"
556 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
557 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
558 " }\n"
559 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
560 " }\n"
561 " printf(\"Po szyfrowaniu: %s\\[rs]n\", txt);\n"
562 "\\&\n"
563 " encrypt(buf, 1);\n"
564 " for (size_t i = 0; i E<lt> 8; i++) {\n"
565 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
566 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
567 " }\n"
568 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
569 " }\n"
570 " printf(\"Po odszyfrowaniu: %s\\[rs]n\", txt);\n"
571 " exit(EXIT_SUCCESS);\n"
572 "}\n"
573
574 #. SRC END
575 #. type: SH
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 #, no-wrap
579 msgid "SEE ALSO"
580 msgstr "ZOBACZ TAKŻE"
581
582 #. type: Plain text
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 msgid "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3)"
586 msgstr "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3)"
587
588 #. type: TH
589 #: debian-trixie
590 #, no-wrap
591 msgid "2024-06-15"
592 msgstr "15 czerwca 2024 r."
593
594 #. type: TH
595 #: debian-trixie
596 #, no-wrap
597 msgid "Linux man-pages 6.9.1"
598 msgstr "Linux man-pages 6.9.1"
599
600 #. type: Plain text
601 #: debian-trixie
602 msgid "Password hashing library (I<libcrypt>, I<-lcrypt>)"
603 msgstr "Biblioteka szyfrowania haseł (I<libc>, I<-lc>)"
604
605 #. type: TH
606 #: fedora-44 fedora-rawhide
607 #, no-wrap
608 msgid "2024-07-23"
609 msgstr "23 lipca 2024 r."
610
611 #. type: TH
612 #: fedora-44 fedora-rawhide
613 #, no-wrap
614 msgid "Linux man-pages 6.13"
615 msgstr "Linux man-pages 6.13"
616
617 #. type: TH
618 #: mageia-cauldron
619 #, no-wrap
620 msgid "Linux man-pages 6.17"
621 msgstr "Linux man-pages 6.17"
622
623 #. type: TH
624 #: opensuse-leap-16-1 opensuse-tumbleweed
625 #, no-wrap
626 msgid "Linux man-pages (unreleased)"
627 msgstr "Linux man-pages (niewydane)"