net.i2p.util

## Class ConvertToHash

- java.lang.Object
- - net.i2p.util.ConvertToHash

-     public class ConvertToHash
      extends Object

  Convert any kind of destination String to a hash Supported: Base64 dest Base64 dest.i2p Base64 Hash Base64 Hash.i2p Base32 Hash Base32 desthash.b32.i2p example.i2p

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConvertToHash()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Hash` | `getHash(String peer)` Convert any kind of destination String to a hash
    `static void` | `main(String[] args)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ConvertToHash

          public ConvertToHash()

  - ### Method Detail

    - #### getHash

          public static Hash getHash(String peer)

      Convert any kind of destination String to a hash
      Returns:
        null on failure

    - #### main

          public static void main(String[] args)