Answer the question
In order to leave comments, you need to log in
How to encrypt text?
There is a program and you need to fasten encryption to it. The user presses button 1, enters a password - the text is encrypted. The user presses button 2, enters the password - the text is decrypted. At the same time, the password itself should not be displayed in the RAM of the computer and, accordingly, on the disk during decryption
. I thought about the RSA algorithm (The only algorithm that I know at a minimum level), but then it becomes necessary to store both keys somewhere while the program is running. And this is not the same.
The programming language is Python, but I'm ready to go down to lower-level languages, down to assembler
Answer the question
In order to leave comments, you need to log in
Several important points. Firstly, the author has confusion in his head. RSA does not refer to encryption but to signing and verifying algorithms. The tutorials describe the use case as Alice sends a message to Bob, but this is just a tutorial. In real protocols like SSL, a sandwich of two technologies works. The first is the process of handshake authentication where it turns out who is who. There might be RSA here. And the exchange of session keys for symmetry. And the second is the opening of a symmetrical encrypted channel where another algorithm like AES / Blowfish is already working.
And the second point. What for. If you just develop a system, then you need to take it ready for Python. If you need to understand, then product ciphers and algorithms are very complex. You can stay for many months. Stop at training maxims before DES.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question