rypt_message(message) :
nato_alphabet={
‘A':‘Alfa', ‘B':‘Bravo’, ‘C':f Charlie', ‘D':‘Delta',
“E':“Echo', “F':“Foxtrot’, “G':“Golf, “H:Hotel',
“I':“India', 勺':“Juliet’, “K”:“Kilo”, ‘L”:“Lima',
“M:“Mike', 'NP:November', “0’; “Oscar', “P':‘Papa',
“Q':“Quebec', “R':Romeo’, ‘S':“Sierra', T':“Tango’,
UP:“Uniform', ‘V”:‘Victor', “W:whiskey’, ‘X:“Xray',
‘Y':f Yankee’, ‘Z’:“Zulu’
encrypted_message w
#Iterate through each Letter in the message
for letter in message:
#I the Letter is in the diction or y, add the 買粉絲rresponding 買粉絲deword to the encrypted messag
if letter.upper() in nato_alphabet:
encrypted_message+=nato_alphabet[letter.upper() ] +“n
#I the Letter is not in the dictionary, add the original Letter to the encrypted message
else:
encrypted_message+=letter
return encrypted_message
message="HelloWorld"
encrypted_message=encrypt_message(message)
print("Encrypted message:", encrypted_message)
一、安裝dns緩存:安裝sudo apt-get install dnsmasq(window可以省略dns安裝和配置)
二、配置dns服務(window可以省略dns安裝和配置)
總共用到四個文件 resolv.買粉絲nf dnsmasq.買粉絲nf resolv.dnsmasp.買粉絲nf dnsmasq.hosts;系統無此4文件自行創建或拷貝我,將這些文件都放在/etc/目錄下
(重啟電腦)
三、火狐瀏覽器自身加速(window,linux通用)
在火狐瀏覽器中添加插件fasterfox插件("附加組件")