H
H
hostovik2020-01-12 20:31:34
Python
hostovik, 2020-01-12 20:31:34

How to quickly asymmetricly encrypt short strings?

On the VPS side, it is necessary to encrypt strings with a length of about 100 bytes.
Some kind of super protection is not needed, this is not critical data and becomes obsolete in a couple of days, but I want to cover it up.

As far as I understand, encrypting with pgp / gpg takes a decent amount of time, plus on such short lines, the encrypted object seems to grow in size greatly.
Maybe there is something faster? it is desirable that there is a wrapper in python

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Karpion, 2020-01-12
@Karpion

Refine the task. Why is symmetric encryption bad?
The easiest way is to transfer data over SSh sevvia installed once for the entire time of work. Standard, debugged, reliable, well documented.

X
xmoonlight, 2020-01-12
@xmoonlight

https://pypi.org/project/pysodium/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question