public interface Digester
This also allows the digest function to be easily pluggable, so end users can select the digest algorithm to use. The default implementation uses java core MD5 hashing.
This interface should be instantiated via X_Inject.instance(Digester.class), as a digester needs to store internal state, it cannot be a singleton.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest() |
byte[] |
digest(byte[] bytes) |
String |
toString(byte[] bytes) |
Digester |
update(byte[] bytes,
int offset,
int length) |
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.