A
A
Andrei1penguin12021-08-05 22:48:36
Encryption
Andrei1penguin1, 2021-08-05 22:48:36

How to encrypt files in python?

Is it possible to convert each character in a file (for example .txt) to ASCII and make one large digit from the resulting digits (by multiplying for example), and then multiply this large digit by the key, which will be the decoder?
Or am I missing something and this method won't work?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Mirilaczvili, 2021-08-05
@Andrei1penguin1

Article about encryption

F
freemailroot, 2021-08-06
@freemailroot

The first rule of encryption is not to come up with your own encryption algorithms.
If it seems that everything is safe and reliable, then it doesn’t seem so to modern cryptanalysts, serious ciphers are developed by serious mathematicians and undergo dozens of audits, so it’s impossible to come up with something of your own even close to similar.

A
Andrey, 2021-08-05
@anerev

And how to restore the original txt from this large first digit obtained by multiplication? Or am I missing something too?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question