A
A
Avrong2015-11-03 08:33:50
Python
Avrong, 2015-11-03 08:33:50

What algorithm to use to encrypt with a key (string)?

There is a string of 30 characters - used as a key for encryption and decryption. You need to encrypt and decrypt another string of indeterminate length using the key string.
What is the best algorithm to use for this option?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2015-11-03
@Avrong

xor

V
Vladimir Martyanov, 2015-11-03
@vilgeforce

Better is a loose concept. Adding each byte of the input text to the byte of your key is a good algorithm, simple.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question