摘要:
先上代码 public class SingletonTest { // 使用volatile保证可见性 private static volatile SingletonTest singletonTest = null; private SingletonTest() { } public st 阅读全文
摘要:
package com.albedo.security; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStr 阅读全文
摘要:
ECDSA签名算法 package com.albedo.security; /** * DSA 加解密实现 */ public class ECDSAUtils extends Base { //字符编码 public static final String ALGORITHM = "EC"; p 阅读全文
摘要:
DSA签名 package com.albedo.security; /** * DSA 加解密实现 */ public class DSAUtils extends Base { //字符编码 public static final String ALGORITHM = "DSA"; public 阅读全文
摘要:
RSA加解密代码: package com.albedo.security; import com.albedo.num.ByteUtils; import javax.crypto.Cipher; import java.security.KeyFactory; import java.secur 阅读全文
摘要:
package com.albedo.security; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.crypto.spec.Sec 阅读全文
摘要:
package com.albedo.security; import java.math.BigInteger; import java.security.MessageDigest; /** * MD5加密 */ public class Md5Utils { public static Str 阅读全文
摘要:
package com.albedo.security; import javax.crypto.Cipher; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; import javax.crypt 阅读全文
摘要:
package com.albedo.security; import javax.crypto.Cipher; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; import javax.crypt 阅读全文
摘要:
查看占用cpu最高的进程 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head或者top (然后按下P,注意这里是大写)查看占用内存最高的进程 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|he 阅读全文