Skip to main content
AskVantage

Security and privacy

Self-destructing algorithms could usher in a new era of cyber security

One time programs perform obfuscated calculations within a "true black box" that then self-destructs keeping all the details of that calculation a secret forever, it has applications for encryption and software protection.

Key takeaways

  • For example, a classical computer of this kind would have to be physically destroyed to ensure it can’t be used again, and, of course, there is no known way of guaranteeing this.
  • Until now, security experts have always expected a definitive solution, such as Bob’s worth is either more or less than Alice’s.
  • The average probability of success for each of the gates is 75 percent, which the team says is in good agreement with the expected value.
Cite or link to this article

Griffin, M. (2017) 'Self-destructing algorithms could usher in a new era of cyber security', 311 Institute, 23 November. Available at: https://www.311institute.com/self-destructing-algorithms-could-usher-in-a-new-era-of-cyber-security/ (Accessed: 1 October 2026).

Imagine two millionaires, you and your better half, or alternatively two random strangers called Alice and Bob, who want to figure out who’s richer but without revealing their wealth to each other, an insolvable problem? This is the crux of what’s known famously as “Yao’s Millionaire Problem,” and it was devised by the computer scientist Andrew Yao in 1982.

One potential solution to Alice and Bob’s problem is to create what’s known as a “One Time Computer Program.” This program allows Alice and Bob to enter their data privately, performs the calculation once, gives the answer and then destroys itself. This ensures that nobody can access the original data, and equally as important, figure out how it was processed to reverse engineer the answer. It also gives Alice and Bob their answer without compromising their financial details.

However, as interesting as this quirky little game of “Guess who’s richer” might sound it actually has real world implications, and cyber security experts say that one time programs are a hugely important tool in cybersecurity. Or they would be if anybody could build them, because as it turns out so far it’s seemed impossible to build an ideal one time program that runs once and then destroys itself. For example, a classical computer of this kind would have to be physically destroyed to ensure it can’t be used again, and, of course, there is no known way of guaranteeing this.

That said though a quantum computer might seem to offer more potential, since quantum information is easily destroyed and impossible to copy, but, dang it, it turns out that a quantum computer cannot give a deterministic answer to a one off calculation. So the dream of a one time program that destroys itself after a single calculation seems doomed.

Now enter Marie-Christine Roehsner at the University of Vienna and Joshua Kettlewell at the National University of Singapore and a couple of colleagues who not only say they’ve found a way to build a one time program, but have actually managed to build a proof of concept.

The new method relies on a different way of thinking about one time programs performed by quantum computers. Until now, security experts have always expected a definitive solution, such as Bob’s worth is either more or less than Alice’s. But quantum mechanics is an inherently probabilistic process, and that means it can only give the correct answer within certain limits of probability, say 75 percent of the time. As long as Alice and Bob are willing to accept the possibility of an error in the calculation, then it is possible to guarantee that their information will remain secure, and that the program runs once and then destroys itself.

“We relaxed the definition of one time programs to allow some probability of error in the output to show that quantum mechanics offers security advantages over purely classical resources,” said the researchers.

The approach is straightforward. Alice secretly encodes her wealth in the states of a set of qubits stored in a quantum computer. This computer is programmed to compare this number with one entered by Bob and to tell him whether his wealth is greater or less than Alice’s.

This quantum processing is itself an irreversible process, and this prevents Bob from entering other numbers to determine Alice’s wealth. So good so far, but the hardware is fixed and as such a potential weakness of this approach is that Bob can reverse engineer the program by working out how the logic gates are wired.

Roehsner has a trick to prevent this, though. Although they can’t hide the physical wiring, they can hide the truth tables that govern the behaviour of each logic gate.

“This is because our approach is to encode the truth table for individual gates as a one time program in its own right,” said Roehsner.

This allows Alice’s information to be encoded in the precise choice of logic gates and not on the connections between them, and thus it remains hidden from Bob.

Roehsner the team have tested their idea in a proof of concept that encodes information in the polarisation of photons and processes it using various kinds of optical logic gates. The average probability of success for each of the gates is 75 percent, which the team says is in good agreement with the expected value.

The team then used their new set up to solve Yao’s Millionaire problem for numbers consisting of four bits that differ by a single bits, and the program works by comparing each bit to decide which is larger.

The results make for interesting reading. The team says the probability of success increases with the number of bits used for error correction, but this also reduces the security of the system. So there is a clear trade off between accuracy and security. Nevertheless, the team says the security is better than can be achieved with classical computing alone.

“Our results demonstrate that quantum physics allows for better security trade offs for certain secure computing tasks than are possible in the classical world, even when perfect security cannot be achieved,” they said.

What’s more, the method is workable using current technology, and even and relatively modest advances would increase the security of the system even more.

“We believe the presented work strongly hints at a rich area of quantum protocols to enhance the security of classical computation, even before large scale quantum computers can be realised,” added Roehsner, and it’ll be interesting to see how the work is received.

Their paper, “Quantum Advantage for Probabilistic One-Time Programs” was published in arxiv.org/abs/1709.09724.

311 Intelligence

What this means for your organisation

Secrets can be compared without sharing.

Two parties can learn an answer without revealing their data to each other. That suits auctions, negotiations and joint analysis. Leaders should identify deals where sharing data is the barrier.

Software can protect itself.

A program that cannot be reused or reverse engineered guards the method as well as the data. That could transform how valuable algorithms are licensed. IP owners should follow quantum security research.

Accepting some error buys security.

The breakthrough came from allowing a small chance of a wrong answer. Security and certainty can be traded. Risk teams should decide where probabilistic results are acceptable.

Three questions for your next leadership meeting

  1. Where could we compare data with partners without revealing it?
  2. How do we protect our most valuable algorithms today?
  3. Where would a small error rate be acceptable for stronger security?

The trends and technologies behind this story

From the 311 Starburst, the 311 Strategic Intelligence Unit’s map of the technologies and trends shaping the next 50 years.

Brief your leadership team on cyber riskA private briefing on the new threat landscape and what it means for your organisation. In person first, anywhere in the world.
Book a Briefing

Analysis by the 311 Strategic Intelligence Unit, from Matthew Griffin’s article and 311 data. First published on Fanatical Futurist.

FAQ

Why does this matter?

One time programs perform obfuscated calculations within a "true black box" that then self-destructs keeping all the details of that calculation a secret forever, it has applications for encryption and software protection.

Matthew Griffin

About the author

Matthew Griffin Founder, President and Futurist, 311 Institute

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath."

Read full bio

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath." 17-time best selling author of the "Codex of the Future" series, Matthew is the Founder, President and Futurist of the 311 Institute, a global Futures and Deep Futures advisory firm working with royal households, world leaders, G7, G20, and G77 governments, NGOs, and multi-national mid and mega cap firms to help them explore, shape, and lead the next 50 years of business and society.

An award-winning YouTube creator with over a million followers, with an unrivalled global reach and impact, Matthew is a highly sought-after international keynote speaker, lecturer, and mentor who collaborates with global leaders through the United Nations Alliance of Civilizations (UNAOC) and United Nations General Assembly (UNGA) to shape pivotal initiatives such as the UN’s AI for Humanity program, the United Nations Conference of the Parties (UN COP), and the World Economic Forum in Davos.

As the former Global Head of Cloud, National Security, and Enterprise Sales for companies including Atos, Dell-EMC, and IBM, Matthew has a proven track record of building multi-billion dollar business units and turning failing divisions into market leaders. His ability to identify, analyse, and communicate the implications of hundreds of emerging technologies and trends is unparalleled, and his insights are trusted by many of the world’s most respected organisations, including ABB, Accenture, Adidas, AON, ARM, BCG, Centrica, Citi, Coca-Cola, Dentons, Deloitte, Dow Jones, EY, Google, KPMG, Lego, Legal & General, LinkedIn, Microsoft, PepsiCo, Qualcomm, RWE, Samsung, Siemens AG and Siemens Energy, T-Mobile, UBS, VISA, Walmart, Workday, Worldpay and many others.

Regularly featured in the global media including the AP, BBC, Bloomberg, CNBC, Discovery, Forbes, Khaleej Times, Telegraph, TIME, ViacomCBS, WIRED, and the WSJ, Matthews mission is to help organisations create a fair and sustainable future whose benefits are shared by everyone irrespective of their ability, background, or circumstances.

What future do you need to see?

Choose one to get started on security and privacy and the future of your organisation.

Where should Matthew reply?

Takes 30 seconds. No obligation. Matthew replies quickly. Privacy

Tag Cloud

Dossier opens the 311 Starburst dossier for that technology or trend.

Sources and further reading

  1. arxiv.org/abs/1709.09724 arxiv.org

Source: first published by the 311 Institute on 23 November 2017. Cite as: Griffin, M. (2017). Self-destructing algorithms could usher in a new era of cyber security. 311 Institute. https://www.311institute.com/self-destructing-algorithms-could-usher-in-a-new-era-of-cyber-security/

You are welcome to quote this article with credit and a link to the original.

Book a Keynote