[Share Experiences] 分享一种加强磁盘加密的方法,适用于防范窃贼和黑客
Tofloor
poster avatar
ThedawnofthemilitaryGod@outlook.
deepin
2024-04-22 01:49
Author

截图_deepin-editor_20240422014729.png

#!/bin/bash

生成包含字母、数字和特殊字符的随机密码

random_password=$(cat /dev/random | tr -dc [:print:] | fold -w 8 | head -n 1)

迭代次数

iterations=80

迭代加密

for ((i=1; i<=$iterations; i++)); do
random_password=​(echo -n "random_password" | tr -dc [:print:])
done

echo "迭代后的密码:$random_password"

最后原谅我发图,我发文字,违规了。其中cat /dev/random | tr -dc [:print:] | fold -w 8 | head -n 1是熵池密码的变体,就我上次发的那个。

Reply Favorite View the author
All Replies
jjcui8595
Moderator
2024-04-22 05:56
#1

like

Reply View the author
乾豫恒益
deepin
2024-04-22 11:35
#2

这个想法可以有,而且很实用,不知道用起来感觉如何?

如果真的经得住现实考验,可以大大的推广,因为感觉比指纹型的要靠谱,市面上的指纹的,都假的很,浪费了不少钱。

Reply View the author
乾豫恒益
deepin
2024-04-22 11:35
#3

收藏了

Reply View the author
库罗靡靡
deepin
2024-04-22 13:40
#4

openssl rand -base64 100

Reply View the author