S
S
StavrovDima2021-04-23 18:43:14
Encryption
StavrovDima, 2021-04-23 18:43:14

Is it possible to encrypt a date with a Caesar cipher?

Hello. In general, the essence of the question is indicated in the title. At our university, a module was asked to encrypt your data (full name and date of birth) using the Caesar cipher and describe the procedure in detail.
And now doubts arise about the competence of the teacher in the matter of the Caesar cipher. I searched everywhere on the Internet - nowhere are the numbers, no matter what it is - the date, number, etc. - do not shift with this simple encryption algorithm.

I would also like to learn a little about the RSA algorithm, because in the second task it is necessary to encrypt the full name using this algorithm. And describe the procedure in detail - how are the public and private keys (hex) generated? How is encryption done? And is it possible to manually encrypt the data, as was the case with the Caesar algorithm, or do you still have to use online cryptographers?
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Kuts, 2021-04-23
@StavrovDima

And what prevents you from shifting the numbers by a certain number of positions?
Another thing is that there is little sense in this, since it breaks easily. Let's say - in the number of days, the first digit can be 0,1,2,3, and the first digit of the month number is generally either 0 or 1, the year - if there are 4 digits - then the first two are also easy to find, which makes it easy to find how many positions to shift .

M
Maxim Grishin, 2021-04-26
@vesper-bot

The second option is to cyclically shift separately the date, separately the month and separately the year by the existing key. Those. say key = 23, initial data = 04/23/2021, we get 27/46/2044, cyclically limit (31 days 12 months) = 03/15/2044. Incorrect dates like 04/31/20xx or 02/29/2003 will still come across, but it will not be so easy to find the original date from them.

M
Maxim, 2021-06-21
@xiadosw

Alternatively, the date can first be converted to Unix time

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question