mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
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