Answer the question
In order to leave comments, you need to log in
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
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.
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question