Package org.apache.shiro.lang.codec
Class H64
java.lang.Object
org.apache.shiro.lang.codec.H64
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
invalid input: '&view'=markup">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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringencodeToString(byte[] bytes) Encodes the specified bytes to anH64-encoded String.
-
Constructor Details
-
H64
public H64()
-
-
Method Details
-
encodeToString
Encodes the specified bytes to anH64-encoded String.- Parameters:
bytes-- Returns:
-