⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 urlbase64encoder.java

📁 kmlnjlkj nlkjlkjkljl okopokipoipo oipipipo i
💻 JAVA
字号:
package org.bouncycastle.util.encoders;/** * Convert binary data to and from UrlBase64 encoding.  This is identical to * Base64 encoding, except that the padding character is "." and the other  * non-alphanumeric characters are "-" and "_" instead of "+" and "/". * <p> * The purpose of UrlBase64 encoding is to provide a compact encoding of binary * data that is safe for use as an URL parameter. Base64 encoding does not * produce encoded values that are safe for use in URLs, since "/" can be  * interpreted as a path delimiter; "+" is the encoded form of a space; and * "=" is used to separate a name from the corresponding value in an URL  * parameter. */public class UrlBase64Encoder extends Base64Encoder{    public UrlBase64Encoder()    {        encodingTable[encodingTable.length - 2] = (byte) '-';        encodingTable[encodingTable.length - 1] = (byte) '_';        padding = (byte) '.';        // we must re-create the decoding table with the new encoded values.        initialiseDecodingTable();    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -