All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anysoft.util.code.coder.Default Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.anysoft.util.code.coder;

import com.anysoft.util.KeyGen;
import com.anysoft.util.code.Coder;


/**
 * 缺省的编码/解码器
 * 
 * 
* * 缺省状态下 * * @author duanyy * @version 1.6.12.7 [20181108 duanyy]
* - 改造coder框架
*/ public class Default implements Coder { @Override public String encode(String data,String key) { return data; } @Override public String decode(String data,String key) { return data; } @Override public String createKey(){ return KeyGen.getKey(8); } @Override public String createKey(String init){ return init; } @Override public String encode(String data, String key, boolean hex, boolean urlSafe) { return data; } @Override public String decode(String data, String key, boolean hex, boolean urlSafe) { return data; } @Override public String createKey(String init, boolean hex, boolean urlSafe) { return init; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy