GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CRYPT::PASSWD::XS (3)

.ds Aq ’

NAME

Crypt::Passwd::XS - Full XS implementation of common crypt() algorithms

CONTENTS

SYNOPSIS



  use Crypt::Passwd::XS;

  my $plaintext = secret;
  my $salt      = $1$1234;
  my $crypted   = Crypt::Passwd::XS::crypt( $plaintext, $salt );



DESCRIPTION

This module provides several common crypt() schemes as full XS implementations. It allows you to validate crypted passwords that were hashed using a scheme that the system’s native crypt() implementation does not support.

    Description of functions

The <B>B>crypt()<B>B> function handles all supported crypt methods using the standard salt prefix system for determinging the crypt type.

The <B>B>unix_md5_crypt()<B>B> function performs a MD5 crypt regardless of the salt prefix.

The <B>B>apache_md5_crypt()<B>B> function performs a APR1 crypt regardless of the salt prefix.

The <B>B>unix_des_crypt()<B>B> funtion performs a traditional DES crypt regardless of the salt prefix.

The <B>B>unix_sha256_crypt()<B>B> function performs a SHA256 crypt regardless of the salt prefix.

The <B>B>unix_sha512_crypt()<B>B> function performs a SHA512 crypt regardless of the salt prefix.

TODO

The blowfish and Sun crypt() schemes are currently unsupported.

AUTHOR

John Lightsey, <jd@cpanel.net>

COPYRIGHT AND LICENSE

Copyright (C) 2011 cPanel, Inc.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.

The following files are adapted from other sources (primarily DragonFly BSD.) See the copyright notices in these files for full details:

crypt_to64.c - copyright 1991 University of California

crypt_to64.h - copyright 1991 University of California

des.c - copyright 1994 David Burren, Geoffrey M. Rehmet, Mark R V Murray

md5.c - copyright 1999, 2000, 2002 Aladdin Enterprises

md5.h - copyright 1999, 2000, 2002 Aladdin Enterprises

md5crypt.c - copyright Poul-Henning Kamp

md5crypt.h - copyright Poul-Henning Kamp

sha256crypt.c - public domain reference implementation by Ulrich Drepper

sha512crypt.c - public domain reference implementation by Ulrich Drepper

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CRYPT::PASSWD::XS (3) 2012-09-19

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.