Class Md5Crypt

  • public class Md5Crypt
    extends Object
    The libc crypt() "$1$" and Apache "$apr1$" MD5-based hash algorithm.

    Based on the public domain ("beer-ware") C implementation from Poul-Henning Kamp which was found at: crypt-md5.c @


     $FreeBSD: src/lib/libcrypt/crypt-md5.c,v 1.1 1999/01/21 13:50:09 brandon Exp $

    Conversion to Kotlin and from there to Java in 2012.

    The C style comments are from the original C code, the ones with "//" from the port.

    This class is immutable and thread-safe.


Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.