forked from I2P_Developers/i2p.i2p
Data: New Hash.toBase32() method
This commit is contained in:
@ -105,6 +105,17 @@ public class Hash extends SimpleDataStructure {
|
||||
return _base64ed;
|
||||
}
|
||||
|
||||
/**
|
||||
* For convenience.
|
||||
* @return "{52 chars}.b32.i2p" or null if data not set.
|
||||
* @since 0.9.25
|
||||
*/
|
||||
public String toBase32() {
|
||||
if (_data == null)
|
||||
return null;
|
||||
return Base32.encode(_data) + ".b32.i2p";
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 0.9.17
|
||||
*/
|
||||
|
Reference in New Issue
Block a user