大家好,欢迎来到黑马公社。
2025年08月28日
ios14小组件除了自定义桌面图片之外,还可以更换图标,使得每个软件图标都有不一样的变化,让你的桌面焕然一新,这里需要使用快捷指令来完成,ios14小组件怎么更换图标?怎么设置?下面带来介绍。
ios14小组件怎么更换图标?
这是自定义主题里比较重要的一步,不过也不是那么必要,可能很多朋友换上几个符合日常使用需求的小组件之后就已经足够了,没有那么多美化的需求,讲究一个简单易用;但是如果你并不满足于只换小组件,想要感受一把「换手机」的错觉,那就需要这个了。需要先说明的一点是,由于 iOS 系统的原因,自定义的桌面图标并不能像其他系统里的快捷方式一样,创建好后就可以直接使用,而是会先跳转到「快捷指令」之后才会打开需要的 App,比原来会多一个窗口切换的动画,启动时间大概也会多 1s 左右。
2025年08月28日
IconPark图标库是一个通过技术驱动矢量图标样式的开源图标库,可以实现根据单一SVG源文件变换出多种主题, 具备丰富的分类、更轻量的代码和更灵活的使用场景;致力于构建高质量、统一化、可定义的图标资源,让大多数设计师都能够选择适合自己的风格图标,并支持把图标源文件导出为React、Vue2、Vue3、SVG多种形式的组件代码,让开发者使用更高效。
2025年08月28日
使用了挺多款可视化软件,例如阿里的IOT Studio,百度的sugar,其组件丰富,配置界面严谨而有条理,操作挺简单,但是配置的交互比较有限,同时还有试用期限。组态王是一款年代久远且功能强大的工业组态软件,但是页面的组件偏工业风,同时配置一个复杂的动画过程,需要费些脑细胞。
鉴于这些,我又折腾了挺久,找到了一款小众的软件,用着感觉还不错,特此分享一下。
了解了下这款可视化软件,是由中海创科技有限公司研发的,看官网介绍是这样的:
2025年08月28日
免费的矢量图网站对于设计师来说是非常有用的资源,可以帮助他们快速找到合适的矢量图,提高设计质量和效率,同时也可以促进创意和想法的分享和交流。
2025年08月28日
从今年8月份开始,阿里巴巴集团(Alibaba Group)逐步更换全新的品牌LOGO,目前其官方网站以及部分国内外社交媒体平台的头像均已经更新。
2025年08月28日
全新的插画库模块在 ICON 「 ONT 上线啦~为了满足不同的用户需求。插画、 icon 更多的矢最图形在平台上展现和应用于更广的场景。
插画库是一系列相关插画的集合,由绘制插画的上传者创建。插画库模块分成公开库和非公开库,插画库一公开库,在平台上对外展现,旨在给广大用户提供更广阔的学习交流环境和更便利的体验。插画库一非公开,保证内容的私密特权,在平台上不对外展现,仅对库里的协作者可见,旨在便于团队、公司内部的项目协作,可支持多人上传、下载使用。
2025年08月26日
DES算法与DESede算法统称DES系列算法,DES算法是对称加密算法中的典型算法。
由于DES的密钥长度的不满足,才衍生出了DESede算法,对应中文“三重DES”。
对称加密会有 工作模式和填充方式两个概念
工作模式:ECB,CBC,CFB,OFB,CTR等
填充方式:NoPadding,PKCS5Padding,PKCS7Padding等
对于这两个概念大家可以在网上自行查阅。
DES算法密钥比较短,只有56位相对其它对称加密来说是不是特别的安全。由于DES算法具有半公开性质,被怀疑存在美国国家安全局安置的后门,受到各大密码学机构的强烈质疑。
2025年08月26日
我写的代码:
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
public class AesCmdTool {
private static final String AES = "AES";
private static final String SHA1PRNG = "SHA1PRNG";
public static final String PRE_KEY = "DES@";
/**
* 将二进制转换成16进制
*/
public static String parseByte2HexStr(byte[] buf) {
StringBuilder sb = new StringBuilder();
String hex = null;
for (byte each : buf) {
hex = Integer.toHexString(each & 0xFF);
if (hex.length() == 1) {
sb.append("0");
}
sb.append(hex.toUpperCase());
}
return sb.toString();
}
/**
* 将16进制转换为二进制
*/
public static byte[] parseHexStr2Byte(String hexStr) {
if (hexStr == null) {
return null;
}
int hexStrLen = hexStr.length();
if (hexStrLen < 1) {
return null;
}
int iLen = hexStrLen / 2;
byte[] result = new byte[iLen];
for (int i = 0; i < iLen; ++i) {
int high = Integer.parseInt(hexStr.substring(i * 2, i * 2 + 1), 16);
int low = Integer.parseInt(hexStr.substring(i * 2 + 1, i * 2 + 2), 16);
result[i] = (byte) (high * 16 + low);
}
return result;
}
public static String encode(String secret, String strPwd) {
byte[] encryptResult = encrypt(secret, strPwd);
if (encryptResult == null) {
return "";
}
return parseByte2HexStr(encryptResult);
}
public static String decode(String secret, String strPwd) {
// 解密
byte[] decryptFrom = parseHexStr2Byte(secret);
byte[] decryptResult = decrypt(decryptFrom, strPwd);
if (decryptResult == null) {
return "";
}
return new String(decryptResult);
}
/**
* 加密
*
* @param content 需要加密的内容
* @param password 加密密码
*/
private static byte[] encrypt(String content, String password) {
try {
KeyGenerator keyGen = KeyGenerator.getInstance(AES);
SecureRandom secureRandom = SecureRandom.getInstance(SHA1PRNG);
secureRandom.setSeed(password.getBytes());
keyGen.init(128, secureRandom);
SecretKey secretKey = keyGen.generateKey();
byte[] enCodeFormat = secretKey.getEncoded();
SecretKeySpec key = new SecretKeySpec(enCodeFormat, AES);
Cipher cipher = Cipher.getInstance(AES);
byte[] byteContent = content.getBytes(StandardCharsets.UTF_8);
cipher.init(Cipher.ENCRYPT_MODE, key);
return cipher.doFinal(byteContent);
} catch (Exception e) {
return null;
}
}
private static byte[] decrypt(byte[] content, String password) {
try {
KeyGenerator keyGen = KeyGenerator.getInstance(AES);
//防止linux下 随机生成key
SecureRandom secureRandom = SecureRandom.getInstance(SHA1PRNG);
secureRandom.setSeed(password.getBytes());
keyGen.init(128, secureRandom);
SecretKey secretKey = keyGen.generateKey();
byte[] enCodeFormat = secretKey.getEncoded();
SecretKeySpec key = new SecretKeySpec(enCodeFormat, AES);
Cipher cipher = Cipher.getInstance(AES);
cipher.init(Cipher.DECRYPT_MODE, key);
return cipher.doFinal(content);
} catch (Exception e) {
return null;
}
}
public static String textDecodeForPreText(String data, String password) {
if (data == null) {
return "";
}
if (data.startsWith(PRE_KEY)) {
return decode(data.substring(PRE_KEY.length()), password);
}
return data;
}
public static void main(String[] args) {
String one = "看代码网";
String pwd = "workForLife";
String enText = encode(one,pwd);
String deText = decode(enText,pwd);
System.out.println("en:"+enText);
System.out.println("de:"+deText);
}
}