org.apache.shiro.codec
Class H64
java.lang.Object
org.apache.shiro.codec.H64
public class H64
- extends Object
Codec for Unix Crypt-style encoding. While similar to
Base64, it is not compatible with Base64.
This implementation is based on encoding algorithms found in the Apache Portable Runtime library's
apr_md5.c
implementation for its crypt
-style support. The APR team in turn received inspiration for its encoding
implementation based on FreeBSD 3.0's /usr/src/lib/libcrypt/crypt.c
implementation. The
accompanying license headers have been retained at the top of this source file.
This file and all that it contains is ASL 2.0 compatible.
- Since:
- 1.2
Constructor Summary |
H64()
|
Method Summary |
static String |
encodeToString(byte[] bytes)
Encodes the specified bytes to an H64 -encoded String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
H64
public H64()
encodeToString
public static String encodeToString(byte[] bytes)
- Encodes the specified bytes to an
H64
-encoded String.
- Parameters:
bytes
-
- Returns:
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.