Debian Codegraph @

po/ar/man3/encrypt.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n 4.30.2\n"
9 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
10 "PO-Revision-Date: 2026-06-06 08:53+0400\n"
11 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
12 "Language-Team: Arabic <[email protected]>\n"
13 "Language: ar\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=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 &&"
18 " n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
19 "X-Generator: Lokalize 23.08.5\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 فبراير 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "صفحات دليل لينكس 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 "الاسم"
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 - تعمية رسائل بطول 64 بت"
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 "المكتبة"
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 msgid "Password hashing library (I<libcrypt>,\\ I<-lcrypt>)"
66 msgstr "مكتبة تجزئة كلمة السر (I<libcrypt>،\\ I<-lcrypt>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "موجز"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid ""
80 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
81 "B<#include E<lt>unistd.hE<gt>>\n"
82 msgstr ""
83 "B<#define _XOPEN_SOURCE> /* انظر feature_test_macros(7) */\n"
84 "B<#include E<lt>unistd.hE<gt>>\n"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<[[deprecated]] void encrypt(char >I<block>B<[64], int >I<edflag>B<);>\n"
92 msgstr ""
93 "B<[[deprecated]] void encrypt(char >I<block>B<[64], int >I<edflag>B<);>\n"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid ""
100 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
101 "B<#include E<lt>stdlib.hE<gt>>\n"
102 msgstr ""
103 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
104 "B<#include E<lt>stdlib.hE<gt>>\n"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "B<[[deprecated]] void setkey(const char *>I<key>B<);>\n"
111 msgstr "B<[[deprecated]] void setkey(const char *>I<key>B<);>\n"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 #, no-wrap
117 msgid ""
118 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
119 "B<#include E<lt>crypt.hE<gt>>\n"
120 msgstr ""
121 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
122 "B<#include E<lt>crypt.hE<gt>>\n"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 "B<[[deprecated]] void setkey_r(const char *>I<key>B<, struct crypt_data *>I<"
130 "data>B<);>\n"
131 "B<[[deprecated]] void encrypt_r(char *>I<block>B<, int >I<edflag>B<,>\n"
132 "B< struct crypt_data *>I<data>B<);>\n"
133 msgstr ""
134 "B<[[deprecated]] void setkey_r(const char *>I<key>B<, struct crypt_data *>I<"
135 "data>B<);>\n"
136 "B<[[deprecated]] void encrypt_r(char *>I<block>B<, int >I<edflag>B<,>\n"
137 "B< struct crypt_data *>I<data>B<);>\n"
138
139 #. type: SH
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid "DESCRIPTION"
144 msgstr "الوصف"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "These functions encrypt and decrypt 64-bit messages. The B<setkey>() "
151 "function sets the key used by B<encrypt>(). The I<key> argument used here "
152 "is an array of 64 bytes, each of which has numerical value 1 or 0. The "
153 "bytes key[n] where n=8*i-1 are ignored, so that the effective key length is "
154 "56 bits."
155 msgstr ""
156 "تعمي هذه الدوال وترجع رسائل بطول 64 بت. تضبط الدالة B<setkey>() المفتاح "
157 "المستخدم بواسطة B<encrypt>(). معامل I<key> المستخدم هنا هو مصفوفة من 64 "
158 "بايت، لكل منها قيمة عددية 1 أو 0. تُتجاهل البايتات key[n] حيث n=8*i-1، لذا "
159 "يكون طول المفتاح الفعلي 56 بت."
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "The B<encrypt>() function modifies the passed buffer, encoding if I<edflag> "
166 "is 0, and decoding if 1 is being passed. Like the I<key> argument, also "
167 "I<block> is a bit vector representation of the actual value that is "
168 "encoded. The result is returned in that same vector."
169 msgstr ""
170 "تعدل الدالة B<encrypt>() المخزن المؤقت الممرر، مع ترميز إذا كان I<edflag> هو "
171 "0، وفك ترميز إذا مُرر 1. مثل معامل I<key>، فإن I<block> هو تمثيل متجه بت "
172 "للقيمة الفعلية التي تُعمى. يُعاد الناتج في نفس المتجه."
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "These two functions are not reentrant, that is, the key data is kept in "
179 "static storage. The functions B<setkey_r>() and B<encrypt_r>() are the "
180 "reentrant versions. They use the following structure to hold the key data:"
181 msgstr ""
182 "هاتان الدالتان غير قابلتين لإعادة الدخول، أي أن بيانات المفتاح تُحفظ في تخزين "
183 "ثابت. الدالتان B<setkey_r>() و B<encrypt_r>() هما النسختان القابلتان لإعادة "
184 "الدخول. تستخدمان البنية التالية لحفظ بيانات المفتاح:"
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid ""
191 "struct crypt_data {\n"
192 " char keysched[16 * 8];\n"
193 " char sb0[32768];\n"
194 " char sb1[32768];\n"
195 " char sb2[32768];\n"
196 " char sb3[32768];\n"
197 " char crypt_3_buf[14];\n"
198 " char current_salt[2];\n"
199 " long current_saltbits;\n"
200 " int direction;\n"
201 " int initialized;\n"
202 "};\n"
203 msgstr ""
204 "struct crypt_data {\n"
205 " char keysched[16 * 8];\n"
206 " char sb0[32768];\n"
207 " char sb1[32768];\n"
208 " char sb2[32768];\n"
209 " char sb3[32768];\n"
210 " char crypt_3_buf[14];\n"
211 " char current_salt[2];\n"
212 " long current_saltbits;\n"
213 " int direction;\n"
214 " int initialized;\n"
215 "};\n"
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid "Before calling B<setkey_r>() set I<data-E<gt>initialized> to zero."
221 msgstr "قبل استدعاء B<setkey_r>() اضبط I<data-E<gt>initialized> على صفر."
222
223 #. type: SH
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, no-wrap
227 msgid "RETURN VALUE"
228 msgstr "قيمة الإرجاع"
229
230 #. type: Plain text
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 msgid "These functions do not return any value."
234 msgstr "لا تُرجع هذه الدوال أي قيمة."
235
236 #. type: SH
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid "ERRORS"
241 msgstr "الأخطاء"
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid ""
247 "Set I<errno> to zero before calling the above functions. On success, "
248 "I<errno> is unchanged."
249 msgstr ""
250 "اضبط I<errno> على صفر قبل استدعاء الدوال أعلاه. عند النجاح، يبقى I<errno> "
251 "دون تغيير."
252
253 #. type: TP
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "B<ENOSYS>"
258 msgstr "B<ENOSYS>"
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid ""
264 "The function is not provided. (For example because of former USA export "
265 "restrictions.)"
266 msgstr "الدالة غير متوفرة. (مثلاً بسبب قيود التصدير الأمريكية السابقة.)"
267
268 #. type: SH
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "ATTRIBUTES"
273 msgstr "السمات"
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid ""
279 "For an explanation of the terms used in this section, see B<attributes>(7)."
280 msgstr ""
281 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
282
283 #. type: tbl table
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "Interface"
288 msgstr "الواجهة"
289
290 #. type: tbl table
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "Attribute"
295 msgstr "السمة"
296
297 #. type: tbl table
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "Value"
302 msgstr "القيمة"
303
304 #. type: tbl table
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid ".na\n"
309 msgstr ".na\n"
310
311 #. type: tbl table
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid ".nh\n"
316 msgstr ".nh\n"
317
318 #. type: tbl table
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid ""
323 "B<encrypt>(),\n"
324 "B<setkey>()"
325 msgstr ""
326 "B<encrypt>(),\n"
327 "B<setkey>()"
328
329 #. type: tbl table
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "Thread safety"
334 msgstr "سلامة الخيوط"
335
336 #. type: tbl table
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "MT-Unsafe race:crypt"
341 msgstr "غير آمن للمسارات المتعددة (MT-Unsafe) سباق:crypt"
342
343 #. type: tbl table
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid ""
348 "B<encrypt_r>(),\n"
349 "B<setkey_r>()"
350 msgstr ""
351 "B<encrypt_r>(),\n"
352 "B<setkey_r>()"
353
354 #. type: tbl table
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, no-wrap
358 msgid "MT-Safe"
359 msgstr "MT-Safe"
360
361 #. type: SH
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid "STANDARDS"
366 msgstr "المعايير"
367
368 #. type: TP
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "B<encrypt>()"
373 msgstr "B<encrypt>()"
374
375 #. type: TQ
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "B<setkey>()"
380 msgstr "B<setkey>()"
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid "POSIX.1-2008."
386 msgstr "POSIX.1-2008."
387
388 #. type: TP
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, no-wrap
392 msgid "B<encrypt_r>()"
393 msgstr "B<encrypt_r>()"
394
395 #. type: TQ
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "B<setkey_r>()"
400 msgstr "B<setkey_r>()"
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid "None."
406 msgstr "لا شيء."
407
408 #. type: SH
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid "HISTORY"
413 msgstr "التاريخ"
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid "Removed in glibc 2.28."
419 msgstr "أُزيلت في glibc 2.28."
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid ""
425 "Because they employ the DES block cipher, which is no longer considered "
426 "secure, these functions were removed from glibc. Applications should switch "
427 "to a modern cryptography library, such as B<libgcrypt>."
428 msgstr ""
429 "لأنها تستخدم المُعمِّي الكتلي DES، الذي لم يعد يُعتبر آمنًا، أُزيلت هذه"
430 " الدوال من "
431 "glibc. يجب على التطبيقات التحول إلى مكتبة تشفير حديثة، مثل B<libgcrypt>."
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 msgid "POSIX.1-2001, SUS, SVr4."
437 msgstr "POSIX.1-2001، SUS، SVr4."
438
439 #. type: SS
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "Availability in glibc"
444 msgstr "التوفر في glibc"
445
446 #. type: Plain text
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 msgid "See B<crypt>(3)."
450 msgstr "انظر B<crypt>(3)."
451
452 #. type: SS
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "Features in glibc"
457 msgstr "الميزات في glibc"
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 msgid "In glibc 2.2, these functions use the DES algorithm."
463 msgstr "في glibc 2.2، تستخدم هذه الدوال خوارزمية DES."
464
465 #. type: SH
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "EXAMPLES"
470 msgstr "أمثلة"
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid ""
477 "#define _XOPEN_SOURCE\n"
478 "#include E<lt>crypt.hE<gt>\n"
479 "#include E<lt>stdio.hE<gt>\n"
480 "#include E<lt>stdlib.hE<gt>\n"
481 "#include E<lt>unistd.hE<gt>\n"
482 "\\&\n"
483 "int\n"
484 "main(void)\n"
485 "{\n"
486 " char key[64];\n"
487 " char orig[9] = \"eggplant\";\n"
488 " char buf[64];\n"
489 " char txt[9];\n"
490 "\\&\n"
491 " for (size_t i = 0; i E<lt> 64; i++) {\n"
492 " key[i] = rand() & 1;\n"
493 " }\n"
494 "\\&\n"
495 " for (size_t i = 0; i E<lt> 8; i++) {\n"
496 " for (size_t j = 0; j E<lt> 8; j++) {\n"
497 " buf[i * 8 + j] = orig[i] E<gt>E<gt> j & 1;\n"
498 " }\n"
499 " setkey(key);\n"
500 " }\n"
501 " printf(\"Before encrypting: %s\\[rs]n\", orig);\n"
502 "\\&\n"
503 " encrypt(buf, 0);\n"
504 " for (size_t i = 0; i E<lt> 8; i++) {\n"
505 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
506 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
507 " }\n"
508 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
509 " }\n"
510 " printf(\"After encrypting: %s\\[rs]n\", txt);\n"
511 "\\&\n"
512 " encrypt(buf, 1);\n"
513 " for (size_t i = 0; i E<lt> 8; i++) {\n"
514 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
515 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
516 " }\n"
517 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
518 " }\n"
519 " printf(\"After decrypting: %s\\[rs]n\", txt);\n"
520 " exit(EXIT_SUCCESS);\n"
521 "}\n"
522 msgstr ""
523 "#define _XOPEN_SOURCE\n"
524 "#include E<lt>crypt.hE<gt>\n"
525 "#include E<lt>stdio.hE<gt>\n"
526 "#include E<lt>stdlib.hE<gt>\n"
527 "#include E<lt>unistd.hE<gt>\n"
528 "\\&\n"
529 "int\n"
530 "main(void)\n"
531 "{\n"
532 " char key[64];\n"
533 " char orig[9] = \"eggplant\";\n"
534 " char buf[64];\n"
535 " char txt[9];\n"
536 "\\&\n"
537 " for (size_t i = 0; i E<lt> 64; i++) {\n"
538 " key[i] = rand() & 1;\n"
539 " }\n"
540 "\\&\n"
541 " for (size_t i = 0; i E<lt> 8; i++) {\n"
542 " for (size_t j = 0; j E<lt> 8; j++) {\n"
543 " buf[i * 8 + j] = orig[i] E<gt>E<gt> j & 1;\n"
544 " }\n"
545 " setkey(key);\n"
546 " }\n"
547 " printf(\"Before encrypting: %s\\[rs]n\", orig);\n"
548 "\\&\n"
549 " encrypt(buf, 0);\n"
550 " for (size_t i = 0; i E<lt> 8; i++) {\n"
551 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
552 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
553 " }\n"
554 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
555 " }\n"
556 " printf(\"After encrypting: %s\\[rs]n\", txt);\n"
557 "\\&\n"
558 " encrypt(buf, 1);\n"
559 " for (size_t i = 0; i E<lt> 8; i++) {\n"
560 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
561 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
562 " }\n"
563 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
564 " }\n"
565 " printf(\"After decrypting: %s\\[rs]n\", txt);\n"
566 " exit(EXIT_SUCCESS);\n"
567 "}\n"
568
569 #. SRC END
570 #. type: SH
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "SEE ALSO"
575 msgstr "انظر أيضًا"
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3)"
581 msgstr "B<cbc_crypt>(3)، B<crypt>(3)، B<ecb_crypt>(3)"
582
583 #. type: TH
584 #: debian-trixie
585 #, no-wrap
586 msgid "2024-06-15"
587 msgstr "15 يونيو 2024"
588
589 #. type: TH
590 #: debian-trixie
591 #, no-wrap
592 msgid "Linux man-pages 6.9.1"
593 msgstr "صفحات دليل لينكس 6.9.1"
594
595 #. type: Plain text
596 #: debian-trixie
597 msgid "Password hashing library (I<libcrypt>, I<-lcrypt>)"
598 msgstr "مكتبة تجزئة كلمة السر (I<libcrypt>، I<-lcrypt>)"
599
600 #. type: TH
601 #: fedora-44 fedora-rawhide
602 #, no-wrap
603 msgid "2024-07-23"
604 msgstr "23 يوليو 2024"
605
606 #. type: TH
607 #: fedora-44 fedora-rawhide
608 #, no-wrap
609 msgid "Linux man-pages 6.13"
610 msgstr "صفحات دليل لينكس 6.13"
611
612 #. type: TH
613 #: mageia-cauldron
614 #, no-wrap
615 msgid "Linux man-pages 6.17"
616 msgstr "صفحات دليل لينكس 6.17"
617
618 #. type: TH
619 #: opensuse-leap-16-1 opensuse-tumbleweed
620 #, no-wrap
621 msgid "Linux man-pages (unreleased)"
622 msgstr "صفحات دليل لينكس (لم تصدر بعد)"
623