
com.pippsford.encoding.Base64URL Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-utils Show documentation
Show all versions of common-utils Show documentation
Code that seems to me to have utility across multiple projects
The newest version!
package com.pippsford.encoding;
import javax.annotation.concurrent.ThreadSafe;
/**
* Convert data into a Base64 encoded form where every three bytes of data is encoded as four characters. This scheme is URL and filename safe and uses '-'
* for 62, '_' for 63, and '=' for the optional padding.
*
* See Wikipedia description of Base64 encoding
*
* @author Simon Greatrix
*/
@ThreadSafe
public class Base64URL extends GenericBase64 {
public Base64URL() {
super('-', '_', '=', false);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy