https://github.com/multiformats/java-multibase
A Java implementation of multibase
https://github.com/multiformats/java-multibase
Last synced: about 1 year ago
JSON representation
A Java implementation of multibase
- Host: GitHub
- URL: https://github.com/multiformats/java-multibase
- Owner: multiformats
- License: mit
- Created: 2016-12-11T16:18:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-28T15:59:37.000Z (about 1 year ago)
- Last Synced: 2025-05-12T00:41:41.753Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 831 KB
- Stars: 39
- Watchers: 12
- Forks: 27
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# java-multibase
[](http://ipn.io)
[](https://github.com/multiformats/multiformats)
[](https://webchat.freenode.net/?channels=%23ipfs)
[](https://github.com/RichardLitt/standard-readme)
> A Java implementation of [Multibase](https://github.com/multiformats/multibase) with encoding & decoding support for: base16[upper], base32[hex][pad][upper], base36[upper], base58btc, base64[url][pad], [base256emoji](https://github.com/multiformats/java-multibase/issues/35).
## Install
Simply clone this repo.
## Usage
```java
byte[] data = ...
String encoded = Multibase.encode(Multibase.Base.Base58BTC, data);
byte[] decoded = Multibase.decode(encoded);
boolean isValid = Multibase.isValid(encoded);
```
## Dependency
You can use this project by building the JAR file as specified below, or by using [JitPack](https://jitpack.io/#multiformats/java-multibase/) (also supporting Gradle, SBT, etc).
for Maven, you can add the follwing sections to your POM.XML:
```xml
jitpack.io
https://jitpack.io
com.github.multiformats
java-multibase
v1.1.1
```
## Testing
`mvn test`
## Building
`mvn package` will build a JAR file with Maven dependency information.
## Releasing
The version number is specified in the `pom.xml` file and must be changed in order to be accurately reflected in the JAR file manifest. A git tag must be added in the format "vx.x.x" for JitPack to work.
## Maintainers
Captain: [@ianopolous](https://github.com/ianopolous).
## Contribute
Contributions welcome. Please check out [the issues](https://github.com/multiformats/java-multibase/issues).
Check out our [contributing document](https://github.com/multiformats/multiformats/blob/master/contributing.md) for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
## License
[MIT](LICENSE) © 2015 Ian Preston