迭代截断的 md5 哈希的挑战

发布于 2025-01-20 12:13:53 字数 231 浏览 3 评论 0原文

我需要帮助这一编程挑战。

使用此字符串:ote2mdm5njjmzddkytq0oa ==

md5哈希并删除哈希的最后16个字符。迭代此过程50次,然后提交下面的最终截断哈希。

我可以使用什么语言?有人可以向我解释要做的脚本吗?

我以前看到有人发布了答案,但他们没有指定它的语言。

i need an help to this challenge of programming.

With this string: OTE2MDM5NjJmZDdkYTQ0OA==

MD5 hash it and remove the last 16 characters of the hash. Iterate this process 50 times and submit the final truncated hash below.

What language can i use? Anyone can explain me the script to do?

i saw someone post the answer to this before but they didn't specify the language it was in.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七度光 2025-01-27 12:13:53

这是Bash中的快速解决方案:

# cat string.sh
#!/bin/bash

str="OTE2MDM5NjJmZDdkYTQ0OA=="

for i in {1..50}
do
  str=$(echo $str | md5sum | cut -c1-16)
done

echo $str
    
# ./string.sh
076f9461e86839f6

Here is a quick made solution in bash:

# cat string.sh
#!/bin/bash

str="OTE2MDM5NjJmZDdkYTQ0OA=="

for i in {1..50}
do
  str=$(echo $str | md5sum | cut -c1-16)
done

echo $str
    
# ./string.sh
076f9461e86839f6
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文