home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pytexdoc / ext / lib / lib1 / crypt / tex
LaTeX Document  |  1996-11-08  |  892 b 

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 42 75 69 6c 74 2d 69 |\section|{Built-i|
|00000010| 6e 20 6d 6f 64 75 6c 65 | 20 7b 5c 74 74 20 63 72 |n module| {\tt cr|
|00000020| 79 70 74 7d 7d 0a 5c 62 | 69 6d 6f 64 69 6e 64 65 |ypt}}.\b|imodinde|
|00000030| 78 7b 63 72 79 70 74 7d | 0a 0a 54 68 69 73 20 6d |x{crypt}|..This m|
|00000040| 6f 64 75 6c 65 20 69 6d | 70 6c 65 6d 65 6e 74 73 |odule im|plements|
|00000050| 20 61 6e 20 69 6e 74 65 | 72 66 61 63 65 20 74 6f | an inte|rface to|
|00000060| 20 74 68 65 20 63 72 79 | 70 74 28 7b 5c 62 66 20 | the cry|pt({\bf |
|00000070| 33 7d 29 20 72 6f 75 74 | 69 6e 65 2c 0a 77 68 69 |3}) rout|ine,.whi|
|00000080| 63 68 20 69 73 20 61 20 | 6f 6e 65 2d 77 61 79 20 |ch is a |one-way |
|00000090| 68 61 73 68 20 66 75 6e | 63 74 69 6f 6e 20 62 61 |hash fun|ction ba|
|000000a0| 73 65 64 20 75 70 6f 6e | 20 61 20 6d 6f 64 69 66 |sed upon| a modif|
|000000b0| 69 65 64 20 44 45 53 20 | 61 6c 67 6f 72 69 74 68 |ied DES |algorith|
|000000c0| 6d 3b 0a 73 65 65 20 74 | 68 65 20 55 6e 69 78 20 |m;.see t|he Unix |
|000000d0| 6d 61 6e 20 70 61 67 65 | 20 66 6f 72 20 66 75 72 |man page| for fur|
|000000e0| 74 68 65 72 20 64 65 74 | 61 69 6c 73 2e 20 20 50 |ther det|ails. P|
|000000f0| 6f 73 73 69 62 6c 65 20 | 75 73 65 73 20 69 6e 63 |ossible |uses inc|
|00000100| 6c 75 64 65 0a 61 6c 6c | 6f 77 69 6e 67 20 50 79 |lude.all|owing Py|
|00000110| 74 68 6f 6e 20 73 63 72 | 69 70 74 73 20 74 6f 20 |thon scr|ipts to |
|00000120| 61 63 63 65 70 74 20 74 | 79 70 65 64 20 70 61 73 |accept t|yped pas|
|00000130| 73 77 6f 72 64 73 20 66 | 72 6f 6d 20 74 68 65 20 |swords f|rom the |
|00000140| 75 73 65 72 2c 20 6f 72 | 0a 61 74 74 65 6d 70 74 |user, or|.attempt|
|00000150| 69 6e 67 20 74 6f 20 63 | 72 61 63 6b 20 55 6e 69 |ing to c|rack Uni|
|00000160| 78 20 70 61 73 73 77 6f | 72 64 73 20 77 69 74 68 |x passwo|rds with|
|00000170| 20 61 20 64 69 63 74 69 | 6f 6e 61 72 79 2e 0a 5c | a dicti|onary..\|
|00000180| 69 6e 64 65 78 7b 63 72 | 79 70 74 28 33 29 7d 0a |index{cr|ypt(3)}.|
|00000190| 0a 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |.\begin{|funcdesc|
|000001a0| 7d 7b 63 72 79 70 74 7d | 7b 77 6f 72 64 5c 2c 20 |}{crypt}|{word\, |
|000001b0| 73 61 6c 74 7d 20 0a 5c | 76 61 72 7b 77 6f 72 64 |salt} .\|var{word|
|000001c0| 7d 20 77 69 6c 6c 20 75 | 73 75 61 6c 6c 79 20 62 |} will u|sually b|
|000001d0| 65 20 61 20 75 73 65 72 | 27 73 20 70 61 73 73 77 |e a user|'s passw|
|000001e0| 6f 72 64 2e 20 20 5c 76 | 61 72 7b 73 61 6c 74 7d |ord. \v|ar{salt}|
|000001f0| 20 69 73 20 61 0a 32 2d | 63 68 61 72 61 63 74 65 | is a.2-|characte|
|00000200| 72 20 73 74 72 69 6e 67 | 20 77 68 69 63 68 20 77 |r string| which w|
|00000210| 69 6c 6c 20 62 65 20 75 | 73 65 64 20 74 6f 20 73 |ill be u|sed to s|
|00000220| 65 6c 65 63 74 20 6f 6e | 65 20 6f 66 20 34 30 39 |elect on|e of 409|
|00000230| 36 20 76 61 72 69 61 74 | 69 6f 6e 73 0a 6f 66 20 |6 variat|ions.of |
|00000240| 44 45 53 2e 20 20 54 68 | 65 20 63 68 61 72 61 63 |DES. Th|e charac|
|00000250| 74 65 72 73 20 69 6e 20 | 5c 76 61 72 7b 73 61 6c |ters in |\var{sal|
|00000260| 74 7d 20 6d 75 73 74 20 | 62 65 20 65 69 74 68 65 |t} must |be eithe|
|00000270| 72 20 5c 63 6f 64 65 7b | 2e 7d 2c 0a 5c 63 6f 64 |r \code{|.},.\cod|
|00000280| 65 7b 2f 7d 2c 20 6f 72 | 20 61 6e 20 61 6c 70 68 |e{/}, or| an alph|
|00000290| 61 6e 75 6d 65 72 69 63 | 20 63 68 61 72 61 63 74 |anumeric| charact|
|000002a0| 65 72 2e 20 20 52 65 74 | 75 72 6e 73 20 74 68 65 |er. Ret|urns the|
|000002b0| 20 68 61 73 68 65 64 20 | 70 61 73 73 77 6f 72 64 | hashed |password|
|000002c0| 0a 61 73 20 61 20 73 74 | 72 69 6e 67 2c 20 77 68 |.as a st|ring, wh|
|000002d0| 69 63 68 20 77 69 6c 6c | 20 62 65 20 63 6f 6d 70 |ich will| be comp|
|000002e0| 6f 73 65 64 20 6f 66 20 | 63 68 61 72 61 63 74 65 |osed of |characte|
|000002f0| 72 73 20 66 72 6f 6d 20 | 74 68 65 20 73 61 6d 65 |rs from |the same|
|00000300| 0a 61 6c 70 68 61 62 65 | 74 20 61 73 20 74 68 65 |.alphabe|t as the|
|00000310| 20 73 61 6c 74 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 | salt..\|end{func|
|00000320| 64 65 73 63 7d 0a 0a 54 | 68 65 20 6d 6f 64 75 6c |desc}..T|he modul|
|00000330| 65 20 61 6e 64 20 64 6f | 63 75 6d 65 6e 74 61 74 |e and do|cumentat|
|00000340| 69 6f 6e 20 77 65 72 65 | 20 77 72 69 74 74 65 6e |ion were| written|
|00000350| 20 62 79 20 53 74 65 76 | 65 20 4d 61 6a 65 77 73 | by Stev|e Majews|
|00000360| 6b 69 2e 0a 5c 69 6e 64 | 65 78 7b 4d 61 6a 65 77 |ki..\ind|ex{Majew|
|00000370| 73 6b 69 2c 20 53 74 65 | 76 65 7d 0a |ski, Ste|ve}. |
+--------+-------------------------+-------------------------+--------+--------+