For many IT experts, quantum computers are a technology of the future. They are not wrong. A massive amount of basic research needs to be done for quantum computers to become a reality. Currently, they cannot be used to solve any real-world problems. A lot of basic issues and problems will have to be resolved until quantum computers can be used for real-world problems.
But even now, the development of quantum computers impacts our currently used IT. In the future, quantum computers will be able to solve problems that cannot be solved by conventional computers without an impractical amount of resources, if at all. These new opportunities can be used to do good, for example, in the development of new medicines, but they can also be used to do harm, as encryption can be cracked more easily. The latter is something we have to deal with right now. Current quantum computers cannot crack any of our encryption, but we have to prepare for the time when they can. We have to do everything now for the time when quantum computers will become available.
Table of Contents
- What are quantum computers?
- What are the basic of current cryptography?
- How are quantum computers able to break cryptography?
- Why is this important now, when quantum computers are not yet available?
- What is post quantum cryptography (PQC)?
- Lattice-based cryptography
- Hash-based cryptography
- Code-based cryptography
- What standards are available?
- Can I already switch to post-quantum cryptography?
- Can I use both at the same time?
- What do I need to take into consideration?
- What is the best way to implement post-quantum cryptography
- Are there any legal requirement
- Does Java support post-quantum cryptography?
- What’s in the future?
But why can quantum computers crack our currently used encryption, and what can we do against it now?
What are quantum computers?
Computers are based on the concept of a bit. A bit can have a value of 0 or 1. These values can be represented as power on or power off. Bits can be processed with logical operators and can again be stored as a bit. Quantum computers are based on the concept of a qbit. A qbit can have a value of 0, 1, and everything in between all at the same time. Qbits are based on the behaviour of quanta at the subatomic level. Operations are performed by entangling these quanta.
You can illustrate the behaviour of a qbits with a coin. A coin can either be heads or tails. The coin can also be tossed into the air and spin, in which case it will have all values at the same time.
It’s very complex and expensive to realise a qbit. The quantum effects can only be realised near absolute zero (0 Kelvin or −273.15 degrees Celsius). Qbits are very sensitive to external influences. To compensate for these errors, multiple physical qbits are combined into one logical qbit. All these requirements lead to current quantum computers only possessing a very low number of qbits.
Google was able to realise a quantum computer with 53 logical qbits in 2019. IBM presented a quantum computer with 7 logical qbits in 2001. There are estimates that in 2030 there might be quantum computers with between 100 and 1 million logical qbits. The discrepancy between these two numbers already makes it clear that the development in this area is every bit as obvious and straightforward.
What are the basic of current cryptography?
Our current used encryption is based on mathematical problems that cannot be solved in an easy way. Solutions for these problems are only possible with a huge amount of computing power.
There are basically two different methods of encryption: symmetric and asymmetric encryption. With symmetric encryption, both sender and recipient use the same key. Examples for symmetric encryption include AES or DSA. Symmetric cryptography can be implemented in hardware and therefore can be computed very quickly. Asymmetric encryption uses two different keys. One key is used for sending and the other for receiving. An example for asymmetric encryption is RSA. The different methods are combined into crypto systems for encrypting and signing data.
RSA is based on the mathematical problem of factoring a large prime number into its prime factors, for which there is no easy mathematical process for this, only brute force. The larger the number, the more computing power is needed. There are certain methods to reduce the number of iterations to find the prime factors, but the remaining number is still impractically huge. Modern cryptography often uses elliptic curves. These are based on the problems of finding the discrete logarithm of the elliptic curve. Both problems cannot be solved by a simple algorithm; there is always a huge amount of try and error/brute force needed.
How are quantum computers able to break cryptography?
Quantum computers do not work with just 0 or 1, but with all values at the same time. This way, they can try more values at the same time. Thus, the time to crack a key can be reduced from weeks or months to just minutes or hours.
In the year 1994, Shor developed an algorithm to break asymmetrical cryptography more easily with the help of quantum computers. An adaptation of Shor’s algorithm can also be used to crack elliptic-curve cryptography. With this, both asymmetric methods will be useless after the availability of quantum computers with the right amount of qbits.
There are different estimates about the amount of qbits needed to crack these methods. For an RSA key with 2048 bits, there is an estimation that around 4000 error-corrected/logical qbits will be needed. A quantum computer would need millions of physical qbits to deliver this amount of logical qbits. In 2019, it was estimated that a quantum computer with 20 million qbits would need 8 hours to crack a 2018 bit RSA key. Conventional computers would need years to do this.
Why is this important now, when quantum computers are not yet available?
You may ask, why you have to deal with this problem now, even though quantum computers with the needed amount of qbits are not yet available and will – if ever – only be available in the future. The answer is quite easy: you can now store encrypted data to crack it and decrypt it later, when the needed quantum computers are available. This method is also called harvest now, decrypt later.
This process is interesting for very sensitive information that is relevant even decades after. Information like this can, for example, be found in the healthcare sector. Information about a patient is relevant for years and needs to still be secure in 10 years or later. Companies also rely on their information being secure for decades.
Because of this, it is important now – years before quantum computers are available – to start securing our cryptography by switching to so-called post-quantum crptography, which can already be encrypted in a way that cannot be cracked by quantum computers in the future.
What is post quantum cryptography (PQC)?
Post-quantum cryptography describes encryption algorithms that are not based on mathematical problems that can be cracked more easily by quantum computers. You don’t need a quantum computer to use these algorithms. These algorithms are already usable on currently available computers.
Post-quantum cryptography is the answer to the problem that currently encrypted information can be stored to be later decrypted with a quantum computer in the future. By using these new cryptographic methods, the information will still be secure in the future.
There are classes of methods that can resist attacks with quantum computers:
Lattice-based cryptography
This cryptography is based on the mathematical problem of finding the shortest path between two points in a multi-dimensional lattice. This problem can only be solved with an impractically large amount of computing power, even when using a quantum computer. Kyber is a key exchange mechanism (KEM) based on this problem.
Hash-based cryptography
Hashes are already used in cryptographic systems. SHA-256 is an example of a cryptographic hash algorithm. As long as the (symmetrical) key is large enough, hash algorithms are relatively resistant against attacks with quantum computers. An example of such a method is Sphincs+; digital signatures created with this algorithm are large and need a huge amount of computing time.
Code-based cryptography
This cryptographic method is based on the theory of error-correcting codes. Algorithms based on this problem have been known since 1987. Until now, there has been no successful attack with quantum algorithms against this method. The disadvantage of these methods is very big keys often in the range of kilobytes.
What standards are available?
Cryptologists have been working on new algorithms for a long time. Since 2016, NIST (National Institute of Standards and Technology) has been working on new standards for post-quantum cryptography. In August 2024, NIST published 3 new standards:
FIPS 203/ML-KEM is a new standard for key exchange (key encapsulation mechanism). This lattice-based method replaces RSA/ECDH.
FIPS 204/ML-DSA is a standard for creating digital signatures. This method is also lattice-based. Like ML-KEM, this algorithm was also created by the CRYSTALS team.
FIPS 205/SHL-DSA is another standard for creating signatures. This is a hash-based algorithm based on Sphincs+.
Can I already switch to post-quantum cryptography?
After the publication of the above-mentioned post-quantum algorithms in August 2024, engineers start to implement these new methods. Today, more and more implementations of these standards are available and can be used.
The first companies are already using PQC in production. A report from September 2025 shows considerable usage by Cloudflare and Amazon.
A prerequisite for the use of PQC is the use of TLS 1.3; older versions of TLS are not capable of PQC ciphers. Many browsers already support PQC during the TLS handshake. The server, however, needs to support this; if not, the old algorithms will be used. By this, backwards compatibility is available.
It depends on your software if you are able to use PQC in production. In the future, there will be more and more software that will support PQC. More and more fundamental libraries are implementing PQC standards. You need to consider that the PKI also needs to support handing out PQC certificates.
Can I use both at the same time?
The currently established algorithms will not be completely replaced by PQC in the foreseeable future. It will be necessary to support the “older” algorithms alongside PQC algorithms. This hybrid model was planned and supported from the beginning.
Systems therefore support both the old and the new algorithms. The communications partners will first try to establish a connection using PQC. If this is not possible, because one of the parties does not support PQC, the old algorithms will be used; thus ensuring backwards compatibility.
What do I need to take into consideration?
You have to consider a few aspects when introducing PQC.
All involved systems need to support PQC algorithms. If this requirement is fulfilled, systems need to be equipped with PQC certificates. Keys for PQC are without exception bigger than keys for currently used algorithms. Systems with restricted resources (memory) might run into issues. But not only this, communications also get more elaborate. A key for ECDA, for example, has a size of 64 bytes. When switching to MD-DSA, the key size will be 1312 bytes. Also, signatures will increase in size. For example, ECDSA-P256 uses a size of 64 bytes. ML-DSA will increase the signature size to 2420 bytes.
PQC algorithms need more computing power than currently used algorithms. PQC algorithms are also not as mature as other algorithms. They are not yet as optimised as others. Systems with limited computing power may run into some issues because of that.
The older cryptographic methods are, and the more often they are checked for weak points, the better they are. PQC algorithms are very young and not yet as tested as currently used methods. They were extensively checked/analysed in the selection process. But nobody knows if there won’t be any attack vectors in the future. Thus, you need to take into account that you will have to update/replace the PQC algorithm in the future.
The quick response to attacks on cryptographic systems is also known as crypto agility. In the future, we cannot implement a cryptographic system and use it for years. We need to react to attacks/weaknesses by updating/replacing the algorithm as quickly as possible. Only with modular cryptography and established processes will we be able to meet these challenges.
What is the best way to implement post-quantum cryptography
To introduce/implement PQC, the following steps should be taken:
Create a crypto inventory. All systems in a company/organisation/datacentre need to be scanned and catalogued in this inventory. What cryptography is used by these systems? What keys are used? What version of the software is used in production? This inventory should contain all information about the algorithms and key material used.
Based on the inventory, you prioritise your systems. Systems with critical/important data have a higher priority over other systems. Systems with a higher priority are updated first, as their data is more sensitive and needs to be protected more.
After prioritising, each system needs to be examined in more depth. Are the systems already prepared for PQC? Can an update solve the lack of PQC support?
If the system needs to be replaced, PQC support should be a deciding factor in deciding what system to buy/build? New systems should come with support for PQC out of the box.
An important factor is the interfaces with external systems. These connections should be checked regularly. Are all systems capable of PQC and can they be configured that way?
If possible, at least hybrid communication with both PQC and currently-used cryptography should be activated as soon as possible.
Are there any legal requirement
There are currently no direct legal requirements to introduce PQC.
But the EU and USA are working on a plan to start using PQC. In the EU, organisations are required to formulate a plan on introducing PQC until the end of 2026. In this plan, switching to PQC for critical systems should be done until 2030, and all other systems should be switched over until 2035.
The NIS-2 directive demands state-of-the-art encryption for critical systems. With the switch demanded by the EU and USA, NIS-2 might also demand the switch to PQC.
For the financial sector, the G7 expert group, together with the German BaFin, has released a roadmap in January 2026 on how to switch to PQC. In this paper, an obligatory migration until 2023 is described.
Does Java support post-quantum cryptography?
In Java, the new post-quantum algorithms were implemented bit by bit after their release.
With JEP 452 in Java 21, the KEM API was introduced. This API lays the foundation for implementing different KEM providers for PQC.
With JEP 510 in Java 25, the KDF API was introduced. This API allows the hybrid usage of PQC and legacy keys in hybrid schemas.
Java 26 comes with the implementation of JEP 524, which allows the direct and easy usage of PEM files. PQC certificates will be stored and distributed in this format.
The implementation of ML-KEM and ML-DSA can be found in Java 24 with JEP 496 and JEP 497. Beginning with Java 24, you can implement PQC communication via TLS 1.3.
In practice, the most important Java version for PQC will be JDK 25, as this „LTS“ version fully supports all necessary algorithms.
What’s in the future?
Java supports PQC since March/September of 2025 with all necessary algorithms being available. Base on this JDK version, Java developers can start implementing systems supporting PQC. PQC should be used as soon as possible on the client side. If possible, the implication on the server side should also start as soon ass possible. As currently used cryptography is still supported (hybrid), old systems will still able to communicate with your PQC systems.
All developers and architects should look into PQC and at least the basics of the use of these new algorithms should be familiar to everyone. We should start the usage of PQC now and not wait for the Q-Day – availability of post-quantum computers.

This article is part of the JAVAPRO special magazine issue:
Java in the Age of AI
Explore how AI is transforming the way we build, secure, and operate software with Java.
From AI agents and new architectural patterns to security, data, and team dynamics—this edition brings together real-world insights for building intelligent, production-ready systems.
Discover the edition →