Package 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 itscrypt
-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
Constructors Constructor Description H64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
encodeToString(byte[] bytes)
Encodes the specified bytes to anH64
-encoded String.
-
-
-
Constructor Detail
-
H64
public H64()
-
-
Method Detail
-
encodeToString
public static String encodeToString(byte[] bytes)
Encodes the specified bytes to anH64
-encoded String.- Parameters:
bytes
-- Returns:
-
-