<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Crypt in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799515#M720659</link>
    <description>Hi all,&lt;BR /&gt;I'd like to create a little C program that use the same crypt algorithm of passwd command.&lt;BR /&gt;The program must accept one argument that is the word to crypt and must return the encrypted word.&lt;BR /&gt;&lt;BR /&gt;Do You could give me an Idea to do it?</description>
    <pubDate>Wed, 04 Sep 2002 11:15:34 GMT</pubDate>
    <dc:creator>Mauro Gatti</dc:creator>
    <dc:date>2002-09-04T11:15:34Z</dc:date>
    <item>
      <title>Crypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799515#M720659</link>
      <description>Hi all,&lt;BR /&gt;I'd like to create a little C program that use the same crypt algorithm of passwd command.&lt;BR /&gt;The program must accept one argument that is the word to crypt and must return the encrypted word.&lt;BR /&gt;&lt;BR /&gt;Do You could give me an Idea to do it?</description>
      <pubDate>Wed, 04 Sep 2002 11:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799515#M720659</guid>
      <dc:creator>Mauro Gatti</dc:creator>
      <dc:date>2002-09-04T11:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Crypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799516#M720660</link>
      <description>man crypt ?&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Wed, 04 Sep 2002 11:16:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799516#M720660</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-09-04T11:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Crypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799517#M720661</link>
      <description>I've already tried but crypt command do not use the same algorythm of passwd. &lt;BR /&gt;I've found in man 3c crypt the crypt() function but I'd like to see some example to understand how use it.</description>
      <pubDate>Wed, 04 Sep 2002 11:37:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799517#M720661</guid>
      <dc:creator>Mauro Gatti</dc:creator>
      <dc:date>2002-09-04T11:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Crypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799518#M720662</link>
      <description>It's actually easy:&lt;BR /&gt;&lt;BR /&gt;1) Extract the 1st two characters of the existing password (old_passwd) hash - this is the 'salt'.&lt;BR /&gt;&lt;BR /&gt;2) char *passwd2 = crypt(plaintext,salt);&lt;BR /&gt;&lt;BR /&gt;3) if (strcmp(old_passwd,passwd2) == 0)&lt;BR /&gt;     {&lt;BR /&gt;       printf("Password okay\n");&lt;BR /&gt;     }&lt;BR /&gt;&lt;BR /&gt;When choosing a new password, you are advised to create a new salt value. The attached snippet will prove useful.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Sep 2002 12:52:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799518#M720662</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-09-04T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Crypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799519#M720663</link>
      <description>Be aware that passwords longer than 8 characters should be encrypted on trusted HP-UX using bigcrypt() instead of crypt().  On other platforms, other functions are used besides bigcrypt(), such as dispcrypt() on Tru64.&lt;BR /&gt;&lt;BR /&gt;If you need a cross-platform solution, I'd suggest looking at the source code to sudo (&lt;A href="http://www.courtesan.com/sudo/)" target="_blank"&gt;http://www.courtesan.com/sudo/)&lt;/A&gt; and wu-ftpd (&lt;A href="http://www.wu-ftpd.org/)." target="_blank"&gt;http://www.wu-ftpd.org/).&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2002 12:16:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt/m-p/2799519#M720663</guid>
      <dc:creator>Jack Tan</dc:creator>
      <dc:date>2002-09-05T12:16:33Z</dc:date>
    </item>
  </channel>
</rss>

