rsarsa
秒了。记得,输入p,q数值时,在第一栏用逗号隔开。自己用python算n,n=p*q。填完p,q和n和e,右键先算D(不然报错),再算明文M
flag{5577446633554466577768879988}
大帝的密码武器
凯撒密码呗
def shift_word(word, shift):
shifted_word = ""
for char in word:
if char.isalpha():
shifted_char = chr(((ord(char) - ord('A') + shift) % 26) + ord('A')) if char.isupper() else chr(((ord(char) - ord('a') + shift) % 26) + ord('a'))
shifted_word += shifted_char
else:
shifted_word += char
return shifted_word
def shift_sentence(sentence, shift):
words = sentence.split()
shifted_sentence = " ".join([shift_word(word, shift) for word in words])
return shifted_sentence
original_sentence = "ComeChina"
shifted_sentence = shift_sentence(original_sentence, 13)
print("原始句子:", original_sentence)
print("移动后句子:", shifted_sentence)
flag{PbzrPuvan}