Using UNIX Crypt() function in VB

Posted on 2006-05-19
Last Modified: 2008-03-03
VB Experts:

I am creating a front end to a perl web program that is written in Perl. The password in the Perl program where encrypted using the crypt method. I need to know how I can encrypt a password in visual Basic to act the same way that the crypt method does so that I can compare my encrypted password in my VB program with that in the MySQL database.
Question by:rkonka123
    LVL 9

    Accepted Solution

    I found this article which might be what your looking for:

    VB6 source is there as well.
    LVL 19

    Assisted Solution

    The perl crypt() routine is a version of the DES encryption.

    For an example of multiple encryption methods using Microsoft's CryptoAPI, please see:

    That's a great example of how to easily perform a DES encryption in visual basic.

    Good Luck

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now