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

📄 encryptedbyte.java

📁 自己实现的AES和DES的加密算法。自己可以随意组成加密数据结构
💻 JAVA
字号:
package com.cmcc.bean;

import com.cmcc.common.util.ByteOprs;

public class EncryptedByte {
	private short len[] = new short[11];
	private byte userType[];
	private byte userUri[];
	private byte domain[];
	private byte userIp[];
	private byte userMobileNo[];
	private byte signInTime[];
	private byte signInTimeOut[];
	private byte userSid[];
	private byte userStatus[];
	private byte eid[];
	
	public byte[] getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType.getBytes();
		len[1] = (short) this.userType.length;
	}

	public byte[] getUserUri() {
		return userUri;
	}

	public void setUserUri(String userUri) {
		this.userUri = userUri.getBytes();
		len[2] = (short) this.userUri.length;
	}

	public byte[] getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain.getBytes();
		len[3] = (short) this.domain.length;
	}

	public byte[] getUserIp() {
		return userIp;
	}

	public void setUserIp(String userIp) {
		this.userIp = userIp.getBytes();
		len[4] = (short) this.userIp.length;
	}

	public byte[] getUserMobileNo() {
		return userMobileNo;
	}

	public void setUserMobileNo(String userMobileNo) {
		this.userMobileNo = userMobileNo.getBytes();
		len[5] = (short) this.userMobileNo.length;
	}

	public byte[] getSignInTime() {
		return signInTime;
	}

	public void setSignInTime(long signInTime) {
		this.signInTime = ByteOprs.long2byte(signInTime);
		len[6] = (short) this.signInTime.length;
	}

	public byte[] getSignInTimeOut() {
		return signInTimeOut;
	}

	public void setSignInTimeOut(long signInTimeOut) {
		this.signInTimeOut = ByteOprs.long2byte(signInTimeOut);
		len[7] = (short) this.signInTimeOut.length;
	}

	public byte[] getUserSid() {
		return userSid;
	}

	public void setUserSid(String userSid) {
		this.userSid = userSid.getBytes();
		len[8] = (short) this.userSid.length;
	}

	public byte[] getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus.getBytes();
		len[9] = (short) this.userStatus.length;
	}
	public byte[] getEid() {
		return eid;
	}

	public void setEid(String eid) {
		this.eid = eid.getBytes();
		len[10] = (short) this.eid.length;
	}
	
	public short[] getLen() {
		short lenth = 0;
		for (int i = 1; i < len.length; i++) {
			lenth += len[i];
		}
		len[0] = lenth;
		return len;
	}

	public void setLen(short[] len) {
		this.len = len;
	}

}

⌨️ 快捷键说明

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