|
Last change
on this file was 2179, checked in by bird, 20 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
266 bytes
|
| Line | |
|---|
| 1 | #include <crypt.h>
|
|---|
| 2 | #include <string.h>
|
|---|
| 3 |
|
|---|
| 4 | int
|
|---|
| 5 | main (int argc, char *argv[])
|
|---|
| 6 | {
|
|---|
| 7 | const char salt[] = "$1$saltstring";
|
|---|
| 8 | char *cp;
|
|---|
| 9 | int result = 0;
|
|---|
| 10 |
|
|---|
| 11 | cp = crypt ("Hello world!", salt);
|
|---|
| 12 | result |= strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp);
|
|---|
| 13 |
|
|---|
| 14 | return result;
|
|---|
| 15 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.