N
N
N1ceK1d2020-08-14 16:32:33
Cryptography
N1ceK1d, 2020-08-14 16:32:33

Which language to choose for cryptography?

What is the best programming language for cryptography?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
T
Taras25, 2020-09-28
@N1ceK1d

If the emphasis is on research goals, then the simpler the language, the better. In this case, it is better to use something already familiar.
If for practical implementation, then the faster the language, the better. Here - C/C++ still hold their positions.

S
Saboteur, 2020-08-14
@saboteur_kiev

For cryptography, a good understanding of higher mathematics and almost any language is better suited.
Cryptography is primarily mathematical algorithms, and they can be programmed on anything.

W
Wataru, 2020-08-14
@wataru

If you practice, then it doesn't matter. Use ready-made cryptography. There are libraries for all popular languages.
If for academic purposes or for the sake of interest you want to write some kind of cryptography yourself, then it is better to take a programming language where there is a convenient long arithmetic. This is, for example, python. The code will be simpler and clearer. In Java, one could use BigInteger, but it is inconvenient to use it (all sorts of constructions of the form a.Add(b).Blablabla(c).Blablabla(d)). In C++, you can override operators for the long number class, but I don't recommend writing in C++ unless it's already your favorite programming language. In python, the entry threshold is lower.

N
NIKA_R, 2021-07-24
@NIKA_R

Depending on tasks. C/C++ for direct implementation and CAS+, HLPLS for formalization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question