黑白皆算,对我等众猿而言*C所在位置数优剃爱肤杠吧爱慕帝贰亿次的值是?
程序员文章站
2024-03-19 09:46:28
...
1. 黑白皆算:钢琴黑白键
2. *C键为如下图黄色标示键
3. 对我等众猿而言: 下标的值为 39
4. 优剃爱肤杠吧: UTF-8
5. 爱慕帝贰: MD2
6. 亿次: 循环100000000次
废话少说撸代码(java):
import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;
import lombok.SneakyThrows;
@SneakyThrows
public static void main(String[] args) {
Digester digester = new Digester(DigestAlgorithm.MD2);
String str = "39";
for (int i = 0; i < 100000000; i++) {
str = digester.digestHex(str);
}
System.out.println(str);
}
结果: 94b1cf2c8f4aa239dd69e90f0850b2f9
7. 那它后接yVvdcU4sw1eXIOg+Q8LAa/uFSU2nUWpwamMopw,爱慕帝嗣(MD4)的值是?
String str = "94b1cf2c8f4aa239dd69e90f0850b2f9" + "yVvdcU4sw1eXIOg+Q8LAa/uFSU2nUWpwamMopw";
// 伪代码,请自行引入md4算法求结果
md4(str);
结果: cef622136aa32993dee7c8bb7258c481