Адр3н@лин0вый <3
local ?
Fiji

:peppinoP:

def split_len(seq, length):
return [seq[i:i + length] for i in range(0, len(seq), length)]
def encode(key, plaintext):
order = {
int(val): num for num, val in enumerate(key)
}
ciphertext = ''

for index in sorted(order.keys()):
for part in split_len(plaintext, len(key)):
try:ciphertext += part[order[index]]
except IndexError:
continue
return ciphertext
print(encode('3214', 'HELLO'))

:peppinoP:

def split_len(seq, length):
return [seq[i:i + length] for i in range(0, len(seq), length)]
def encode(key, plaintext):
order = {
int(val): num for num, val in enumerate(key)
}
ciphertext = ''

for index in sorted(order.keys()):
for part in split_len(plaintext, len(key)):
try:ciphertext += part[order[index]]
except IndexError:
continue
return ciphertext
print(encode('3214', 'HELLO'))
Зараз не в мережі
Улюблена гра
1,7
Годин проведено
Вітрина знімків екрана
всем долбаебам посвящается..
1
Колекціонер ігор
Адр3н@лин0вый <3 15 лип. о 13:09 
Я буду устанавливать все игры..:wally::atafist:
Daddy 18 берез. о 16:01 
+rep
hitman1234 6 січ. о 13:51 
cheater and son of bi tch
MaD_MeX 4 лют. 2024 о 15:37 
▒▒██████████████████▒▒
▒▐███▀▀▀▀▀██▀▀▀▀▀███▌▒
▒███▒▒▌■▐▒▒▒▒▌■▐▒▒███▒
▒▐██▄▒▀▀▀▒▒▒▒▀▀▀▒▄██▌▒
▒▒▀████▒▄▄▒▒▄▄▒████▀▒▒
▒▒▐███▒▒▒▀▒▒▀▒▒▒███▌▒▒
▒▒███▒▒▒▒▒▒▒▒▒▒▒▒███▒▒
▒▒▒██▒▒▀▀▀▀▀▀▀▀▒▒██▒▒▒
▒▒▒▐██▄▒▒▒▒▒▒▒▒▄██▌▒▒▒
░░▄▄▓▀▀░░░░░░░▒▒▒▀▀▀▓▄░
░▐▓▒░░▒▒▒▒▒▒▒▒▒░▒▒▒▒▒▒▓
░▐▓░█░░░░░░░░▄░░░░░░░░█░
░▐▓░█░░░(◐)░░▄█▄░░(◐)░░░█
░▐▓░░▀█▄▄▄▄█▀░▀█▄▄▄▄█▀░
Адр3н@лин0вый <3 18 січ. 2024 о 14:16 
:peppinoeyes:
☭ ❤ 39 吹下未来 01 ☂ 15 січ. 2024 о 22:05 
+rep