MiG Base64

MiGBase64 is a very fast and small Base64 Codec written in Java

License

License

Categories

Categories

Ant Build Tools
GroupId

GroupId

com.brsanthu
ArtifactId

ArtifactId

migbase64
Last Version

Last Version

2.2
Release Date

Release Date

Type

Type

jar
Description

Description

MiG Base64
MiGBase64 is a very fast and small Base64 Codec written in Java
Project URL

Project URL

http://sourceforge.net/projects/migbase64/
Project Organization

Project Organization

Mikael Grev
Source Code Management

Source Code Management

https://github.com/brsanthu/migbase64

Download migbase64

How to add to project

<!-- https://jarcasting.com/artifacts/com.brsanthu/migbase64/ -->
<dependency>
    <groupId>com.brsanthu</groupId>
    <artifactId>migbase64</artifactId>
    <version>2.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.brsanthu/migbase64/
implementation 'com.brsanthu:migbase64:2.2'
// https://jarcasting.com/artifacts/com.brsanthu/migbase64/
implementation ("com.brsanthu:migbase64:2.2")
'com.brsanthu:migbase64:jar:2.2'
<dependency org="com.brsanthu" name="migbase64" rev="2.2">
  <artifact name="migbase64" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.brsanthu', module='migbase64', version='2.2')
)
libraryDependencies += "com.brsanthu" % "migbase64" % "2.2"
[com.brsanthu/migbase64 "2.2"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

Overview

MiGBase64 is a very fast Base64 Codec written in Java. It is currently faster than any other Java codecs I know of and it doesn't create any temporary arrays which many others do.

Repository History

This library is clone of http://migbase64.sourceforge.net/ project. It has been cloned here in github for following reasons.

  • To Manvanify the project
  • To Sync the artifacts to Maven Central

Other than that, code/tests are exactly same as original repository and same BSD license applies here as well. Full copyright of this library belongs to Mikael Grev.

To include this library, add following dependency. You can also add this using m2e artifact search.

Maven:

<dependency>
    <groupId>com.brsanthu</groupId>
    <artifactId>migbase64</artifactId>
    <version>2.2</version>
</dependency>

Gradle:

compile("com.brsanthu:migbase64:2.2")

If you have any questions or issues about the functionality of the library, I would recommend you create an issue in sourceforce at http://sourceforge.net/p/migbase64/feature-requests/

However if the issue is related to artificat availability in Maven central, please create an issue here, in Github.

As groupId, I would have preferred to use migcomponents.com (due to http://www.migcomponents.com) but decided to use my own groupId brsanthu.com just so I can easily release artifacts into Maven Central using my existing account at https://oss.sonatype.org.

Usage

To encode use one of the Base64.encode* methods and to decode one of Base64.decode* methods.

Example:

System.out.println(Base64.encodeToString("Hello World".getBytes(StandardCharsets.UTF_8), false));

System.out.println(new String(Base64.decode("SGVsbG8gV29ybGQ="), StandardCharsets.UTF_8));

Javadocs

See Javadocs here

Performance

from http://migbase64.sourceforge.net/

Client VM

Client VM - Encode String

Client VM - Encode char[]

Client VM - Encode byte[]

Server VM

Server VM - Encode String

Server VM - Encode char[]

Server VM - Encode byte[]

Release Notes

from https://sourceforge.net/p/migbase64/news/?source=navbar

2.2 (2004-08-06)

  • Added a "fast" decode method that is a little more than two times faster than the normal one but has some moderate restriction on input.

  • Normal decode now handles negative bytes and just disregard them as specified in RFC 2045.

  • Some minor enhancements

2.1 (2004-08-06)

The initial release has been posted. Posted by Mikael Grev

Donate

Donate at Sourceforge

Versions

Version
2.2