Debian Codegraph @

po/ro/man3/encrypt.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2024, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.22.0\n"
8 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
9 "PO-Revision-Date: 2025-02-02 10:33+0100\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "encrypt"
25 msgstr "encrypt"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 februarie 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NUME"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "encrypt, setkey, encrypt_r, setkey_r - encrypt 64-bit messages"
51 msgstr "encrypt, setkey, encrypt_r, setkey_r - criptează mesaje pe 64 de biți"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "BIBLIOTECA"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Password hashing library (I<libcrypt>,\\ I<-lcrypt>)"
64 msgstr "Biblioteca de criptare a parolelor (I<libcrypt>, I<-lcrypt>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "SINOPSIS"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid ""
78 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
79 "B<#include E<lt>unistd.hE<gt>>\n"
80 msgstr ""
81 "B<#define _XOPEN_SOURCE> /* Consultați feature_test_macros(7) */\n"
82 "B<#include E<lt>unistd.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<[[deprecated]] void encrypt(char >I<block>B<[64], int >I<edflag>B<);>\n"
89 msgstr "B<[[depreciat]] void encrypt(char >I<block>B<[64], int >I<edflag>B<);>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
97 "B<#include E<lt>stdlib.hE<gt>>\n"
98 msgstr ""
99 "B<#define _XOPEN_SOURCE> /* Consultați feature_test_macros(7) */\n"
100 "B<#include E<lt>stdlib.hE<gt>>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "B<[[deprecated]] void setkey(const char *>I<key>B<);>\n"
107 msgstr "B<[[depreciat]] void setkey(const char *>I<key>B<);>\n"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, no-wrap
113 msgid ""
114 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
115 "B<#include E<lt>crypt.hE<gt>>\n"
116 msgstr ""
117 "B<#define _GNU_SOURCE> /* Consultați feature_test_macros(7) */\n"
118 "B<#include E<lt>crypt.hE<gt>>\n"
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 #, no-wrap
124 msgid ""
125 "B<[[deprecated]] void setkey_r(const char *>I<key>B<, struct crypt_data *>I<data>B<);>\n"
126 "B<[[deprecated]] void encrypt_r(char *>I<block>B<, int >I<edflag>B<,>\n"
127 "B< struct crypt_data *>I<data>B<);>\n"
128 msgstr ""
129 "B<[[depreciat]] void setkey_r(const char *>I<key>B<, struct crypt_data *>I<data>B<);>\n"
130 "B<[[depreciat]] void encrypt_r(char *>I<block>B<, int >I<edflag>B<,>\n"
131 "B< struct crypt_data *>I<data>B<);>\n"
132
133 #. type: SH
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "DESCRIPTION"
138 msgstr "DESCRIERE"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "These functions encrypt and decrypt 64-bit messages. The B<setkey>() "
145 "function sets the key used by B<encrypt>(). The I<key> argument used here "
146 "is an array of 64 bytes, each of which has numerical value 1 or 0. The "
147 "bytes key[n] where n=8*i-1 are ignored, so that the effective key length is "
148 "56 bits."
149 msgstr ""
150 "Aceste funcții criptează și decriptează mesaje pe 64 de biți. Funcția "
151 "B<setkey>() stabilește cheia utilizată de B<encrypt>(). Argumentul I<key> "
152 "utilizat aici este o matrice de 64 de octeți, fiecare dintre aceștia având "
153 "valoarea numerică 1 sau 0. Octeții key[n] unde n=8*i-1 sunt ignorați, astfel "
154 "încât lungimea efectivă a cheii este de 56 de biți."
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid ""
160 "The B<encrypt>() function modifies the passed buffer, encoding if I<edflag> "
161 "is 0, and decoding if 1 is being passed. Like the I<key> argument, also "
162 "I<block> is a bit vector representation of the actual value that is "
163 "encoded. The result is returned in that same vector."
164 msgstr ""
165 "Funcția B<encrypt>() modifică memoria tampon transmisă, codificând dacă "
166 "I<edflag> este 0 și decodificând dacă este transmis 1. Ca și argumentul "
167 "I<key>, de asemenea I<block> este o reprezentare vectorială de biți a "
168 "valorii reale care este codificată. Rezultatul este returnat în același "
169 "vector."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "These two functions are not reentrant, that is, the key data is kept in "
176 "static storage. The functions B<setkey_r>() and B<encrypt_r>() are the "
177 "reentrant versions. They use the following structure to hold the key data:"
178 msgstr ""
179 "Aceste două funcții nu sunt reentrante, adică datele cheie sunt păstrate în "
180 "memoria statică. Funcțiile B<setkey_r>() și B<encrypt_r>() sunt versiunile "
181 "reentrante. Acestea utilizează următoarea structură pentru a păstra datele "
182 "cheii:"
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid ""
189 "struct crypt_data {\n"
190 " char keysched[16 * 8];\n"
191 " char sb0[32768];\n"
192 " char sb1[32768];\n"
193 " char sb2[32768];\n"
194 " char sb3[32768];\n"
195 " char crypt_3_buf[14];\n"
196 " char current_salt[2];\n"
197 " long current_saltbits;\n"
198 " int direction;\n"
199 " int initialized;\n"
200 "};\n"
201 msgstr ""
202 "struct crypt_data {\n"
203 " char keysched[16 * 8];\n"
204 " char sb0[32768];\n"
205 " char sb1[32768];\n"
206 " char sb2[32768];\n"
207 " char sb3[32768];\n"
208 " char crypt_3_buf[14];\n"
209 " char current_salt[2];\n"
210 " long current_saltbits;\n"
211 " int direction;\n"
212 " int initialized;\n"
213 "};\n"
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid "Before calling B<setkey_r>() set I<data-E<gt>initialized> to zero."
219 msgstr ""
220 "Înainte de a apela B<setkey_r>() stabilește I<data-E<gt>initialized> la zero."
221
222 #. type: SH
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid "RETURN VALUE"
227 msgstr "VALOAREA RETURNATĂ"
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid "These functions do not return any value."
233 msgstr "Aceste funcții nu returnează nicio valoare."
234
235 #. type: SH
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "ERRORS"
240 msgstr "ERORI-IEȘIRE"
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid ""
246 "Set I<errno> to zero before calling the above functions. On success, "
247 "I<errno> is unchanged."
248 msgstr ""
249 "Stabilește I<errno> la zero înainte de a apela funcțiile de mai sus. În caz "
250 "de succes, I<errno> rămâne neschimbată."
251
252 #. type: TP
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "B<ENOSYS>"
257 msgstr "B<ENOSYS>"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "The function is not provided. (For example because of former USA export "
264 "restrictions.)"
265 msgstr ""
266 "Funcția nu este furnizată; (de exemplu, din cauza fostelor restricții de "
267 "export din SUA)."
268
269 #. type: SH
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "ATTRIBUTES"
274 msgstr "ATRIBUTE"
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "For an explanation of the terms used in this section, see B<attributes>(7)."
281 msgstr ""
282 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
283 "B<attributes>(7)."
284
285 #. type: tbl table
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "Interface"
290 msgstr "Interfață"
291
292 #. type: tbl table
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "Attribute"
297 msgstr "Atribut"
298
299 #. type: tbl table
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "Value"
304 msgstr "Valoare"
305
306 #. type: tbl table
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid ".na\n"
311 msgstr ".na\n"
312
313 #. type: tbl table
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid ".nh\n"
318 msgstr ".nh\n"
319
320 #. type: tbl table
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid ""
325 "B<encrypt>(),\n"
326 "B<setkey>()"
327 msgstr ""
328 "B<encrypt>(),\n"
329 "B<setkey>()"
330
331 #. type: tbl table
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "Thread safety"
336 msgstr "Siguranța firelor"
337
338 #. type: tbl table
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "MT-Unsafe race:crypt"
343 msgstr "MT-Unsafe race:crypt"
344
345 #. type: tbl table
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid ""
350 "B<encrypt_r>(),\n"
351 "B<setkey_r>()"
352 msgstr ""
353 "B<encrypt_r>(),\n"
354 "B<setkey_r>()"
355
356 #. type: tbl table
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "MT-Safe"
361 msgstr "MT-Safe"
362
363 #. type: SH
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "STANDARDS"
368 msgstr "STANDARDE"
369
370 #. type: TP
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "B<encrypt>()"
375 msgstr "B<encrypt>()"
376
377 #. type: TQ
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "B<setkey>()"
382 msgstr "B<setkey>()"
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid "POSIX.1-2008."
388 msgstr "POSIX.1-2008."
389
390 #. type: TP
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "B<encrypt_r>()"
395 msgstr "B<encrypt_r>()"
396
397 #. type: TQ
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "B<setkey_r>()"
402 msgstr "B<setkey_r>()"
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid "None."
408 msgstr "Niciunul."
409
410 #. type: SH
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "HISTORY"
415 msgstr "ISTORIC"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid "Removed in glibc 2.28."
421 msgstr "Eliminată în glibc 2.28."
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid ""
427 "Because they employ the DES block cipher, which is no longer considered "
428 "secure, these functions were removed from glibc. Applications should switch "
429 "to a modern cryptography library, such as B<libgcrypt>."
430 msgstr ""
431 "Deoarece acestea utilizează cifrul bloc DES, care nu mai este considerat "
432 "sigur, aceste funcții au fost eliminate. Aplicațiile ar trebui să treacă la "
433 "o bibliotecă de criptografie modernă, cum ar fi B<libgcrypt>."
434
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 msgid "POSIX.1-2001, SUS, SVr4."
439 msgstr "POSIX.1-2001, SUS, SVr4."
440
441 #. type: SS
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid "Availability in glibc"
446 msgstr "Disponibilitate în glibc"
447
448 #. type: Plain text
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 msgid "See B<crypt>(3)."
452 msgstr "Consultați B<crypt>(3)."
453
454 #. type: SS
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 #, no-wrap
458 msgid "Features in glibc"
459 msgstr "Caracteristici în glibc"
460
461 #. type: Plain text
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 msgid "In glibc 2.2, these functions use the DES algorithm."
465 msgstr "În glibc 2.2, aceste funcții utilizează algoritmul DES."
466
467 #. type: SH
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 #, no-wrap
471 msgid "EXAMPLES"
472 msgstr "EXEMPLE"
473
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, no-wrap
478 msgid ""
479 "#define _XOPEN_SOURCE\n"
480 "#include E<lt>crypt.hE<gt>\n"
481 "#include E<lt>stdio.hE<gt>\n"
482 "#include E<lt>stdlib.hE<gt>\n"
483 "#include E<lt>unistd.hE<gt>\n"
484 "\\&\n"
485 "int\n"
486 "main(void)\n"
487 "{\n"
488 " char key[64];\n"
489 " char orig[9] = \"eggplant\";\n"
490 " char buf[64];\n"
491 " char txt[9];\n"
492 "\\&\n"
493 " for (size_t i = 0; i E<lt> 64; i++) {\n"
494 " key[i] = rand() & 1;\n"
495 " }\n"
496 "\\&\n"
497 " for (size_t i = 0; i E<lt> 8; i++) {\n"
498 " for (size_t j = 0; j E<lt> 8; j++) {\n"
499 " buf[i * 8 + j] = orig[i] E<gt>E<gt> j & 1;\n"
500 " }\n"
501 " setkey(key);\n"
502 " }\n"
503 " printf(\"Before encrypting: %s\\[rs]n\", orig);\n"
504 "\\&\n"
505 " encrypt(buf, 0);\n"
506 " for (size_t i = 0; i E<lt> 8; i++) {\n"
507 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
508 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
509 " }\n"
510 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
511 " }\n"
512 " printf(\"After encrypting: %s\\[rs]n\", txt);\n"
513 "\\&\n"
514 " encrypt(buf, 1);\n"
515 " for (size_t i = 0; i E<lt> 8; i++) {\n"
516 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
517 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
518 " }\n"
519 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
520 " }\n"
521 " printf(\"After decrypting: %s\\[rs]n\", txt);\n"
522 " exit(EXIT_SUCCESS);\n"
523 "}\n"
524 msgstr ""
525 "#define _XOPEN_SOURCE\n"
526 "#include E<lt>crypt.hE<gt>\n"
527 "#include E<lt>stdio.hE<gt>\n"
528 "#include E<lt>stdlib.hE<gt>\n"
529 "#include E<lt>unistd.hE<gt>\n"
530 "\\&\n"
531 "int\n"
532 "main(void)\n"
533 "{\n"
534 " char key[64];\n"
535 " char orig[9] = \"eggplant\";\n"
536 " char buf[64];\n"
537 " char txt[9];\n"
538 "\\&\n"
539 " for (size_t i = 0; i E<lt> 64; i++) {\n"
540 " key[i] = rand() & 1;\n"
541 " }\n"
542 "\\&\n"
543 " for (size_t i = 0; i E<lt> 8; i++) {\n"
544 " for (size_t j = 0; j E<lt> 8; j++) {\n"
545 " buf[i * 8 + j] = orig[i] E<gt>E<gt> j & 1;\n"
546 " }\n"
547 " setkey(key);\n"
548 " }\n"
549 " printf(\"Înainte de criptare: %s\\[rs]n\", orig);\n"
550 "\\&\n"
551 " encrypt(buf, 0);\n"
552 " for (size_t i = 0; i E<lt> 8; i++) {\n"
553 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
554 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
555 " }\n"
556 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
557 " }\n"
558 " printf(\"După criptare: %s\\[rs]n\", txt);\n"
559 "\\&\n"
560 " encrypt(buf, 1);\n"
561 " for (size_t i = 0; i E<lt> 8; i++) {\n"
562 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
563 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
564 " }\n"
565 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
566 " }\n"
567 " printf(\"După decriptare: %s\\[rs]n\", txt);\n"
568 " exit(EXIT_SUCCESS);\n"
569 "}\n"
570
571 #. SRC END
572 #. type: SH
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid "SEE ALSO"
577 msgstr "CONSULTAȚI ȘI"
578
579 #. type: Plain text
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 msgid "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3)"
583 msgstr "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3)"
584
585 #. type: TH
586 #: debian-trixie
587 #, no-wrap
588 msgid "2024-06-15"
589 msgstr "15 iunie 2024"
590
591 #. type: TH
592 #: debian-trixie
593 #, no-wrap
594 msgid "Linux man-pages 6.9.1"
595 msgstr "Pagini de manual de Linux 6.9.1"
596
597 #. type: Plain text
598 #: debian-trixie
599 msgid "Password hashing library (I<libcrypt>, I<-lcrypt>)"
600 msgstr "Biblioteca de criptare a parolelor (I<libcrypt>, I<-lcrypt>)"
601
602 #. type: TH
603 #: fedora-44 fedora-rawhide
604 #, no-wrap
605 msgid "2024-07-23"
606 msgstr "23 iulie 2024"
607
608 #. type: TH
609 #: fedora-44 fedora-rawhide
610 #, no-wrap
611 msgid "Linux man-pages 6.13"
612 msgstr "Pagini de manual de Linux 6.13"
613
614 #. type: TH
615 #: mageia-cauldron
616 #, no-wrap
617 msgid "Linux man-pages 6.17"
618 msgstr "Pagini de manual de Linux 6.17"
619
620 #. type: TH
621 #: opensuse-leap-16-1 opensuse-tumbleweed
622 #, no-wrap
623 msgid "Linux man-pages (unreleased)"
624 msgstr "Pagini de manual Linux (nepublicate)"