New Inventions in Cryptography and Logical Attacks
local graph
Chapter 6 — New Inventions in Cryptography and Logical Attacks
Section titled “Chapter 6 — New Inventions in Cryptography and Logical Attacks”In Chapter 5, Zero-Knowledge Protocols, I already explained my non-interactive protocol that was patented in 2013: ZK13. In this chapter, I will explain two algorithms that were patented and published between 2008 and 2012. The two algorithms we will talk about are called MB09 and MBXI: the acronyms formed of my initials combined with the year of their invention. Additionally, we will look at a third protocol, MBXX, patented in 2020, which is a union between MB09 and MBXI from a new perspective that is related to blockchain and digital currency. Finally, I will introduce Lightweight encryption, a new algorithm for encrypting data for IoT and smart devices.
We will begin with an introduction to the genesis of these algorithms. Following this, we will examine, in detail, the schemes of the algorithms, their strengths, and their weak points.
We will start with MB09, which is a public/private key algorithm concept used principally for digital money transmission. Moreover, we will see the digital signature schemes of MBXI and a comparison with Diffie-Hellmann (D-H) and RSA.
Finally, we will discuss one of the last cryptographic protocols, MBXX, that could be considered valid for blockchain consensus.
In this chapter, we will cover the following topics:
- The genesis of the MB09 algorithm
- The scheme and explanation of MB09
- A detailed explanation of MBXI
- Unconventional attacks on RSA and public key encryption
- Digital signatures in MBXI
- MBXX: the evolution of MB09 and MBXI in the light of the blockchain revolution and the consensus problem
- Lightweight encryption and the Cybpher algorithm
Several of the algorithms we will look at are related to the digital payment environment, so we will dedicate a part of this chapter to discussing this environment, touching on blockchain and cryptocurrency.
Now, let’s look at the genesis of the first algorithm, MB09, and its related applications.
The genesis of the MB09 algorithm and blockchain
Section titled “The genesis of the MB09 algorithm and blockchain”When I started project MB09 and, consequently, MBXI, at the time, I didn’t know which applications they would be suitable for. In fact, I didn’t know whether they would have any applications in cryptography or cybersecurity.
Between 2007 and 2008, I decided to start applying for my first patent, the system that I later called MB09. At the time, I was studying some problems related to digital payments, and the goal was to implement an algorithm that could fit this kind of environment. When I finally completed the application for MB09, it was June 12, 2009. It is likely that at that time, only a few people knew about a new wave in crypto-finance guided by a group of cyber-punks and crypto-anarchists. This new wave was rising as one of the most innovative technologies invented in the 21 st century.
With their headquarters in an artistic, funky building inside a pseudo-hotel located at 20 Mission Street in the heart of San Francisco, the newly born group set up a hacker house to meet and discuss the new technofinance. When I visited this place some years ago, the group had already left it, but the stories of epic brainstorming and meetups created a sense of mystery around this location.

Figure 6.1 – The hacker house at 20 Mission Street, San Francisco – headquarters of Bitcoin (photograph by the author)
Figure 6.1: The hacker house at 20 Mission Street, San Francisco: headquarters of Bitcoin (photograph by the author)
Among this group, there was a legendary figure called Satoshi Nakamoto, the mysterious author of a published white paper, titled A Peer-to-Peer Electronic Cash System, on digital payments. It was November 2008. That was also the beginning of a new era that was destined to forever change the digital payment system.
In the abstract of his white paper, based on previous ideas from WeiDai b-money, Satoshi stated the following:
“We propose a solution to the double-spending problem using a peer-to-peer network. The network timestamps transactions by hashing them into an ongoing chain of hash-based proof-of-work, forming a record that cannot be changed without redoing the proof-of-work. The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.”
The paper never mentioned the name blockchain, but it is evident that it refers to it when it says the longest chain.
It was the prelude of the age of cryptocurrency, which culminated in the rise and common usage of one of the most extraordinary inventions in virtual money: Bitcoin. Nowadays, who hasn’t heard about Bitcoin? Perhaps we know a little about Zcash (we discussed this in Chapter 5, Zero-Knowledge Protocols) and all the myriads of virtual coins released in the period of Initial Coin Offering (ICO). It was a correlated phenomenon linked to Bitcoin, something similar to an Initial Public Offering (IPO) but made up of cryptocurrency virtual tokens, starting in 2016.
This chapter will focus on algorithms related to secure and anonymous payments in the period between 2008 and 2012. It’s essential to understand the context in which the idea of a new, free, and anarchic way of conceiving money has arisen. Additionally, it’s important to understand the technology behind it: the blockchain. It was probably the fulcrum and the core of digital payment systems. Now, it’s rising as one of the emergent technologies that enable many applications in FinTech, artificial intelligence, healthcare, and other sectors.
However, we have to go back a few years in this story. In Chapter 4, Hash Functions and Digital Signatures, I told you about David Chaum and his DigiCash, which was crafted in the 1990s. Blind signatures anonymized this form of digital payment. It was undoubtedly the first attempt to create digital money. In 2008, and precisely on the Wednesday after September 15 of that year, when the financial colossus Lehman Brothers collapsed, many other banks were also involved in bankruptcy and bailouts.
An extraordinary financial crisis called the subprime mortgage crisis laid the foundations for this new wave of cryptocurrency. The collapse of the financial system and people’s deep uncertainty pushed Satoshi Nakamoto to re-think the way to produce, transmit, and spend money. Indeed, in his already mentioned white paper, the three pillars predicted by Satoshi Nakamoto to build the perfect currency are no government, no banks, and no trusted third parties. On January 3, 2009, when Satoshi crafted the first genesis block of Bitcoin, he sculpted in the blockchain a note next to the numbers generated by the first hash of the chain. This note read Chancellor on brink of second bailout for banks and remarked on his hatred of banks and the traditional financial system.
In the following screenshot, you can see the genesis block of Bitcoin as it appeared:

Figure 6.2 – The genesis block by Satoshi Nakamoto
Figure 6.2: The genesis block by Satoshi Nakamoto
We will not analyze here all that takes place in processing a transaction in Bitcoin blockchain. We will specifically analyze the cryptography algorithms that lie at the foundation of it. The real difficulty for Satoshi Nakamoto was finding a way to perform the validation process for the transmission of digital currency, which is called the consensus problem. I will return to this concept of consensus later in this chapter to demonstrate that it is possible to avoid it, under certain conditions, using only the power of cryptography algorithms. So, I will suggest that blockchain is superfluous to process a digital transaction. Essentially, everything can be done using cryptography and avoiding blockchain.
Two other motivations pushed me to project algorithms in the field of public/private key encryption. The first was related to another payment method, called M-PESA, which I came across during my research (2007–2008). The second was related to my big wish to try to fight against the consolidated standard algorithms.
Let’s look at the first motivation. I suppose that not many of you know what M-PESA is and how it works. It is a straightforward payment method, so I will not spend more than a few words explaining its mechanism. The interesting question is why do two-thirds of people born in Africa (more than 1.2 billion) use M-PESA to send money via cellphones and use it to receive the majority of the $500 billion sent from emigrants in other countries?
The answer is equally simple: low transaction fees (compared to MoneyGram and Western Union’s higher fees) and the simple method of using the application on a phone. It’s well known that in Africa there are more cellphones than cars, houses, or bank accounts. Africa will be the next colossal digital market for finance; it would be impossible to have enough bank branches or ATMs to cover the large area of the continent. So, the most widely used method of payment and transmission of funds is using a phone. This phenomenon attracted so much of my attention that I spent months investigating the systems of payment adapted for cellphones.
At the time, Vodafone (the big telecommunication company) owned 40% of Safaricom (Kenya’s biggest telecom company). In 2007, Safaricom began a pilot program that allowed users to send money via cellphone. Vodafone had rolled out the product in Tanzania, South Africa, Mozambique, Egypt, Fiji, India, and Romania, beginning with Kenya itself.
In May 2011, after having implemented my first crypto-digital payment system, showing that it worked, I went to sign a contract with a big telecommunication company involved in digital payments (I have mentioned one of these previously). The agreement’s purpose was to explore the possibility of implementing a property platform for digital payments. The telecommunication company also engaged my team and me in a new research project related to implementing another algorithm that was to become a new system: MBXI. Now, after many years, thinking back to that time, I can say that the payment system that I developed, implemented, and tested together with my collaborators (the engineers), Tiziana Landi and Alessandro Passerini, was one of the best things I have done in my career.
Even though the MB09 payment system has never been adopted as a standard, in the next section you will find some interesting properties in the algorithm that might be useful to increase your ability as a cryptographer.
Now, if you follow me, I will guide you in discovering the first of the two algorithms, MB09. This is a method based on Fermat’s Last Theorem and remodeled in cryptographic mode. Then, we will analyze MBXI along with an interesting attack on RSA.
Introducing the MB09 algorithm and an attempt at demonstrating Fermat’s Last Theorem
Section titled “Introducing the MB09 algorithm and an attempt at demonstrating Fermat’s Last Theorem”First, we will start with some considerations regarding the algorithm and reintroduce Fermat’s Last Theorem. The first time I presented MB09, it was as an encryption algorithm, but effectively it is much more of a protocol for digital payments. As I have already mentioned, while blockchain and cryptocurrency were not yet well known, I developed MB09 as an encryption/decryption algorithm to exchange a message between two actors. Many years later, I worked on the algorithm, taking it as the basis for a fully homomorphic encryption system and creating MB23, which was a fully homomorphic algorithm. Eventually, in 2020, it was turned into a new version, called MBXX, to overcome the consensus problem proposed by Satoshi Nakamoto and its related technology: the Bitcoin blockchain.
Let’s examine how the first version of the MB09 algorithm worked:
- To do that, we’ll recall Fermat’s Last Theorem:
Here, the n exponents represent all the sets of positive integers.
This equation, as we already know, has been demonstrated to be never satisfied except for the n = 2 exponent (which is the well-known Pythagorean theorem), as follows:
- Diving deeper to analyze this simple yet complex equation, we find that in modular mode, by substituting the n exponents with a set of prime numbers, p, in the first equation, the following equation’s results are always verified for the modular math addition property:
In simple words, the second equation shows that the sum of a p + b p is always verified to be z p for all primes >2. The proof of its verification is the following:
- Fermat’s Little Theorem states that a p ≡ a (mod p), b p ≡ b (mod p), and so on to z, where p is a prime number. Remember p is a prime number and it’s the same parameter both in the elevation and in the module.
- From the sum elementary math property, we have:
- If we substitute a with a p (mod p), b with b p (mod p), and z with z p (mod p), it stands that a p +b p ≡ z p (mod p) is always verified.
- Continuing with the result from the start of step 2, we can also conclude that, for all of the (p) exponents (at the opposite of its correspondent linear equation mode), the sum of (a+b) p is always verified, and it’s equal to z p. In other terms:
For example, consider the following modular sum:
So, we can re-write the preceding equation in step 2 in the following form:
Alternatively, for the modular sum property, we can even write it in the following simplified form:
That means if we put a prime number (p) as an exponent and even the modulus with the same (p) value, then the preceding equation (in modular mode) returns to linear mode, so that (a+b) is always equal to its sum, (z).
At this point, I could hazard a demonstration:
- In step 3, we reached the point of rewriting the equation to
. - In step 2, we demonstrated (following Fermat’s Little Theorem) that the equation results are always verified for all p>2.
For example, if we try p =11, we have:
- The sum of is always
, as we have previously seen. So, this equation (in modular mode) is always verified to be valid in the opposite way of what we want to demonstrate in linear mode: the sum must always be denied z n. - But still, we have a problem: the exponent n is an integer number and not just a prime number p. Is this a real problem? If I demonstrate that it is valid for any p, is it valid for all the integer numbers?
- Now let’s assume by contradiction that the following equation (putting p ’ instead of p as the module) would always be verified:
Where (p’) is the set of all the prime numbers >. So, by definition, we can also take p’>z.
Can you catch the meaning?
If, we are dealing with a sum of expressed in linear mode, no longer in modular mode, because the operation performed with the sum falls back inside the ring (Zp’).
For example, let’s assume that the first prime number after is p’:
So, we calculate the equation in (mod 8589934609):
There is no difference in performing such an equation in modulo p’ or in linear mode.
- In fact, both equations will never be satisfied.
That’s because for Fermat’s Little Theorem, again, we have:
Consequently:
As a result, in step 5 of this demonstration, we had wrongly assumed.
So, now we must assume that:
This last equation is equivalent to writing:
That was what we wanted to demonstrate for the Fermat version with prime exponents.
Now, returning back to MB09, the following equation is what Fermat’s Little Theorem explains, and it determines the preceding linear function:
For example, consider the following:
You might not have noticed, but in the preceding function, we used the equal symbol (=), not the symbol ≡, which means congruent notation. In this case, the meaning of = is very important because we mean equal in its absolute values, so 3 is actually 3, and not just congruent.
I understand that all this could appear a little bit fuzzy, but try to follow me a little bit further ahead and the fog should disappear.
Fermat’s Little Theorem states that a p = a (mod p) if a<p. So, what happens if we assume a>p?
For example, let’s try with a = 5 and p = 3:
As you can see, (a) is no longer equal to (a) in its absolute value if a>; the result is only congruent.
This intriguing property caused me to bear many considerations in mind regarding Fermat’s Little Theorem, the most important of which here is the formulation of the following hypothesis:
“If I take a>>p (much greater than p) and I keep [a] secret, then this will be a one-way function where it will be very difficult to return from the result, let’s say from (A) to [a].”
Let’s look at an example.
You can verify that 5 3 ≡ 2 (mod 3), but also 8 3 ≡ 2 (mod 3), and 11 3 ….14 3, 17 3 are all congruent, and so on infinitely.
As you might have gathered, the curious thing is that starting from an initial value of 5 and adding 3 + 3 + 3… (essentially, adding 3 sequentially), we always obtain the same value (2) in (mod 3), which is different in absolute value from (5), as Fermat’s Little Theorem states when p > a.
Finally, at the time, I wanted to demonstrate that it is very difficult to come back from a public number (A) to a secret number [a] if p < a.
Let me explain this concept with an example taking a larger [a]:
That is, it would be easy to reduce this number to its corresponding modulo p=3.
In fact, we have the following:
Conversely, if I know the public number, (A) = 2, where the following is true:
Then, even if an attacker knows p = 3, it will be very difficult to attempt to obtain the [a] private key if a>>p:
The simple reason for this is that p = 3 is our (Z p) ring, but [a], the private secret key, is outside of the (Z 3) ring, and you don’t know when to stop the iteration to find number [a]. Theoretically, [a] could be all the numbers from (p) to infinity and it doesn’t matter how large [a] is because, computationally, it is very easy to obtain (A) from [a] but not vice versa. However, all that works but only in some instances.
Now that you know the basis on which MB09 leans, you will probably be curious to learn how it was implemented in its first version.
Important note
I have represented, with a lowercase [a] letter, the hidden elements of the equation and, with the uppercase (A) letter, the known elements. However, don’t be confused by this, and don’t assume that A > a just because the letters are lower and uppercase. In fact, it’s the opposite: in mathematical terms, A is much smaller than [a].
An extensive explanation of the MB09 algorithm
Section titled “An extensive explanation of the MB09 algorithm”As I mentioned earlier, the MB09 system is based on public/private key encryption principles. However, the scope here is not to send and receive a message between two (or more) actors. MB09 doesn’t work correctly if used for this scope. However, the scheme of the algorithm works well for the scope to set up a protocol to manage and transmit digital cash in anonymity and secure the transactions.
Eventually, one of the purposes of implementing such a system is that the network works as an autonomous system. I will explain this concept better in the next section when introducing MBXX, which is the evolution of MB09 in a decentralized environment. The version I’ll present now, starting from a centralized system, will migrate to a decentralized and distributed system, as we will discover in MBXX.
In the next section, I will explain the basic concepts of a network governed by crypto algorithms, where Z (the centralized administrator) must verify whether all the transactions made by the users are correct and acceptable.
Z is our network’s centralized administrator; you can think of it as a telecommunication provider or a bank. Alice and Bob are two actors in the network.
Bob is the sender, and Alice is the receiver. They can be considered virtual machines, servers, or computers. In our basic example, they are part of a network in which there are many users. The network’s admin (Z) is a server that is linked to many users, as you can see in the following diagram of a centralized network:

Figure 6.3 – A centralized network
Figure 6.3: A centralized network
Z has already published some parameters such as the prime number (p) and the public keys, (A) and (B), of Alice, Bob, and other participants.
We will proceed to look at the algorithm with only these two actors. Still, as I have already mentioned, this algorithm’s strength is just the possibility of operating with many users who don’t know each other, who don’t trust each other, and who don’t trust third parties.
Indeed, Fermat’s Last Theorem (which is extended in modular form), in this case, applied to MB09, is valid also for an infinite number of users of the network, as you can mathematically see here:
Important note
I have illustrated the operations with a sum (+); however, all of these operations could be performed by XOR, difference, or multiplication.
The [M] message has previously been encoded with ASCII code (as we learned in the first chapter), and you can think of [M] as an amount of digital money to transfer between (A) and (B).
Now, let’s demonstrate whether Alice and Bob can transfer money to each other using the algorithm mathematically.
Each step of this algorithm after the key initialization consists of a recursive iteration of the following:
- Implementation of the public parameters of the users
- Operations on the parameters: the transmission of the messages (for example, a digital money transfer)
- Re-valuation of the new parameters
Key initialization:
- [a]: This is the private secret key of Alice.
- [b]: This is the private secret key of Bob.
This assumes that [a] and [b] are two random large primes.
Public parameters:
Alice and Bob calculate their public keys starting with their private keys:
At this point, you can visualize the two f(z) and f(Z) equations. The first is in modular mode, and the second is transformed into linear mode:
The correspondence between the first equation’s elements and the second equation’s elements is essential for the algorithm. As you can observe in the following diagram, each element of the first equation can be represented with an element of the second equation.
The peculiarity of this correspondence is that, while in the first equation, the operations have been performed using the users’ private keys; in the second equation, the operations are performed with the public keys of the users. You can see that the arrows are only going in one direction, from [a] to (A), and it’s difficult, as we have seen, to go back from (A) to [a] if [a>>p]:

Figure 6.4 – The correspondence between the elements of two equations
Figure 6.4: The correspondence between the elements of two equations
Here, (Z) can be defined as the isomorphic balance between the operations performed with the parameters expressed clearly, instead of inside the square brackets, representing the secret parameters of the f[z] function.
At this point, MB09 (version 2009) went on with a standard cryptographic transmission based on a pair of keys to transmit a message between Alice and Bob.
Important note
Remember that, here, [a] and [b] are Alice and Bob’s secret values. Moreover, don’t confuse the letters [a] and (A), thinking that (A) is bigger than [a] just because the first is represented in capital letters.
First, we have to generate the secret transmission key, [K]. This is a shared transmission key that can transmit [M] between Alice and Bob. It can be generated with any public/private key algorithm, just like the D-H algorithm.
Indeed, in the first version of MB09, I adopted the [K] key generated by D-H. However, as you might have gathered, it’s possible to generate [K] with any other algorithm that uses the [a] and [b] secret keys of Alice and Bob as input and gives a cryptogram, (c), as output.
Important note
(c) is the cryptogram represented inside round brackets. Here, I use (c) because we have only two actors. In other cases, I will use another notation; don’t confuse it with an element of the network.
The representation of the algorithm with only two actors (but as I said, this is a multiple-communication algorithm) is as follows:
Alice encrypts [M] using her [K a] secret key, where [K a] has been generated by any public/private key algorithm, and obtains the cryptogram (c):
Important note
Here, as I have already mentioned, (c) is the cryptogram, which is obtained through the multiplication of the secret message [M] with Alice’s private key [K a]. In the original version of the algorithm, I used multiplication as the operation to generate (c). However, it is possible to implement it with a different encryption method, such as Bitwise-XOR or scalar multiplication.
Bob decrypts [M], generating a [K b] secret key such as the following:
For instance, if we assume the use of this algorithm in a digital cash environment, such as the transmission of digital cash in a payment system, [M] will be the real amount of digital cash transacted, while (Hm), its corresponding hash value, will represent the hash of [M]:
The operations performed on the first equation (at the top), encrypted, give the result [z] linked by an operation to the message [M] “in blind” that corresponds with the operations performed by the second equation’s elements and matches the result of the linear equation (Z). We will experiment with a similar protocol later in this chapter when we discuss the MBXX protocol.
Essentially, (Z) represents the homomorphic balance of the system, as the digital money transacted doesn’t change the value of (Z). The scope to adopt such a homomorphic balance is that the administrator has, in each instance, a corresponding balance of the total amount of cash with the isomorphic values and can control the accuracy of the transactions even when the transacted amount, [M], is unknown. If you’re struggling to understand (Z), note that we will be working with (Z) again when we look at the MBXX protocol, particularly in the Notes on the MBXX protocol section.
Let’s perform an exercise using a D-H key exchange:
- [a] and [b] are the secret parameters of Alice and Bob.
As we know, the public parameters in D-H are as follows:
- p: Large prime number
- g: The generator of the (Z p) ring
The exchanging of [M] is performed as follows.
Step 1: Encryption
Alice generates her public key (Ag) starting with her secret parameter, [a]:
Bob generates his public key (Bg) starting with his secret parameter, [b]:
Alice calculates the following:
Alice encrypts [M] with her [K a] key:
Step 2: Decryption
Alice sends (c, Ag) to Bob.
Alice sends the hash value of [M] = (Hm) to the administrator.
Bob decrypts (c), returning [M]:
Note that is just the inverse modular operation of multiplication. You can figure it out like a division:. You can refer to Figure 6.5 for a complete scheme of the algorithm applied to the transmission of a secret message.
If we consider the private keys of Alice and Bob, [a] and [b], as values of their accounts and [M] as the amount of digital cash transmitted, we have a third step, which can be regarded as the homomorphic balance.
Step 3: The homomorphic balance
Transposing the value of [M] both into the first equation and the second equation, the admin can verify that the transaction between (A) and (B) is correct:
Pay attention to the following in the function of the encryption:
As I have said, I have used the multiplication between [M] and [K] to encrypt [M]. However, we can also implement the encryption with another operator, such as Bitwise XOR, between the message [M] and the key [K]. Note that, here, the algorithm of the transmission adopted to send [M] is not as important as the logical structure of the protocol for the implementation of multiple transmissions.
Indeed, the logical structure of this algorithm is not crafted for two users but multiple users.
In this scheme, it is supposed that the admin knows the amount of money originally held by the users. Let’s look at an example:

Figure 6.5 – The original version of the patented MB09 published in the Patent Cooperation Treaty (PCT)
Figure 6.5: The original version of the patented MB09 published in the Patent Cooperation Treaty (PCT)
At the time, together with my colleagues, we crafted a Proof of Concept (POC) to demonstrate that MB09 could work well to exchange digital cash. We implemented a transmission of digital crypto cash between cellphones. The protocol used was based on a modified version of MB09, which I have presented here. It was added to the operative elements to engineer implementation.
In May 2010, the payment system based on MB09 was selected as a candidate for digital payments by a telecommunication company. This company then acquired part of the rights on the patent of MB09 and entrusted our research laboratory with a research project to implement another private/public key algorithm, MBXI, which we will examine next.
Introducing the MBXI algorithm
Section titled “Introducing the MBXI algorithm”When I started the MBXI project, it was 2010. I had already had the algorithm’s scheme in my mind for some time before that, but there were some issues that I couldn’t solve. While I was working on project MB09, to build a digital payment network, the telecommunication company that became my partner also needed to use a proprietary algorithm to send a message, [M]. In this scenario, that refers to the amount of digital money transmitted between two or more actors in the network.
So, I proposed a new public/private key algorithm. MBXI was patented in November 2011, and it’s still valid now after ten years.
MBXI is a cryptographic process method that could be simultaneously considered both an asymmetric scheme and a symmetric scheme. We learned in Chapter 2, Symmetric Encryption Algorithms, how symmetric schemes work, and in Chapter 3, Asymmetric Encryption Algorithms, we learned how asymmetric schemes work. This algorithm bases its strength on the discrete logarithm problem, which has already been explored across different algorithms in this book (for example, D-H, ElGamal, zero-knowledge protocols, and more). As mentioned, the discrete logarithm problem is still a very hard problem to solve; we have learned that if modular equations (such as the p modulo) are implemented using a big prime number, the solution of exponential modular equations is very burdensome or almost impossible.
This algorithm derives its robustness from the application of modular exponential equations, which are injected (one-way) functions for defining exponents of the encryption (and decryption) equations. As you can see in the flowchart in Figure 6.6, the [T] message is decomposed into [M] sub-messages divided into blocks.
In MBXI, the only way to determine the private key is to solve the discrete logarithm differently with other asymmetric encryption algorithms, such as RSA, that suffer from both the problems of factorization and discrete logarithm (as explained in Chapter 3, Asymmetric Encryption Algorithms), along with ElGamal.
In fact, the best way to define this algorithm is as neither asymmetric nor symmetric but a public/private key algorithm; I will explain the reasons for this later in this chapter.
Let’s dive deeper to explore the scheme of MBXI.
Alice and Bob are always our two actors. In this scenario, let’s consider that Bob wants to send an [M] secret message.
The first step of the algorithm is to generate the private and public keys given by the common public parameters published on the network:
- p: This is a large prime number.
- g: This is a generator of the ring (Zp).
Step 1: Key generation
- [a]: This is the private secret key of Alice (a large number chosen inside p-1).
- [b]: This is the private secret key of Bob (a large number chosen inside p-1).
- Alice’s public key:
- Bob’s public key:
Step 2: Encryption
The encryption in MBXI is done by an inverse modular equation expressed by solving the following function:
In this inverse equation, Bob takes the public key of Alice, (K A), elevates it to his private key, [b], and adds it to (e B), where (e B) is a parameter selected from the group of integers so that the co-primeness between the following is verified:
and
Then, after solving the inverse modular equation for [x], Bob calculates the cryptogram, (C), which is given by the function:
Bob sends the triple (C, e B, K B) function transmission to Alice.
Step 3: Decryption
Alice can now decrypt (C) using Bob’s public key, (K B), and her private key [a],along with the parameter (e B). This parameter is transmitted by Bob, whose function will be better described later during the analysis of the algorithm.
The decryption consists of solving the following function, which produces [y] as Alice’s private decryption key:
Finally, the [M] message is returned to Alice, elevating (C) to [y]:
Where, as mentioned, [y] is Alice’s private decryption key, represented by the solution of the preceding inverse modular equation.
The flowchart in the following diagram will help you gain a better understanding of the entire process of the encryption/decryption of MBXI:

Figure 6.6 – The encryption/decryption process in MBXI
Figure 6.6: The encryption/decryption process in MBXI
Now that we have examined how MBXI works, let’s look at an example with numbers to understand it better.
A numerical example of MBXI
Section titled “A numerical example of MBXI”The following numerical example represents a cryptographic communication established between a sender (Bob) and a receiver (Alice). Of course, like all the other examples, we use relatively small numbers. Bear in mind that, in a real application, the private keys are, at the very least, of the order of 3,000 bits (that is, thousands of digits), such as the prime (p).
We will begin with the following two assumptions:
- p = 7919.
- g = 7 is the generator.
Alice selects her private key, [a]:

Bob selects his private key, [b]:
Important note
As you have noticed, I have selected a sequence of numbers for a = 123456 and b = 543210. This is just an example, and you should never use a sequence of numbers when you select a password in the real world because this is the first combination of numbers tried by an attacker.
According to the first step of the algorithm (key generation), Alice computes her public key as follows:
Bob does the same, and computes his public key as follows:
Bob’s encryption is performed in accordance with the following equation:
Here, (e B)= 1 is the smallest integer that verifies the equation.
Therefore, Bob determines the following private encryption key [x]:
With this parameter, Bob calculates the cryptogram, (C):
Bob sends the triple (C, K B, e B) = (2760, 4997, 1) transmission to Alice.
Once Alice has received the triple (C, K B, e B) transmission, she is able to decrypt cryptogram (C) and determine the message block of [M]:
Indeed, M = 88 matches the original message block, [M], transmitted by Bob.
As you can observe, in the preceding example, I have demonstrated with real numbers that the algorithm works. Now, I will offer some notes on it to point out some functions and show similarities with RSA.
Notes on the MBXI algorithm and the prelude to an attack on RSA
Section titled “Notes on the MBXI algorithm and the prelude to an attack on RSA”First of all, I want to clarify the meaning of the (e B) parameter. This is clearly transmitted between the sender and the receiver. However, in different versions, it can be randomly processed.
For example, (e B) is randomly selected from the range of (1, 10). Let’s assume that (e B) is 6. Therefore, the equation of encryption will be as follows:
Note that for (e B) = 6, the equation is not verified!
Indeed, if we try to put e B = 6 in the preceding function instead of e B = 1, using the Reduce function in Wolfram Mathematica, this is the result:
In other words, the inverse number for 4960 (mod 7919) doesn’t exist. In addition to this, the number that is randomly selected from the given range is increased by 1, and the check process is repeated using (e B) = 7, which satisfies the co-primeness condition whereby x = 5575.
So, we will have the following encryption process:
In this case, Bob’s triple transmission to Alice will be (C, K B, e B) = (2195, 4997, 7).
So, the decryption will be as follows:
From this equation, M = 88 matches the original message block of [M] that was transmitted by Bob.
Another important consideration relates more to the implementation of MBXI and, in particular, to several problems related to the length of the [M] message.
The [M = 1] message gives the ciphertext of (C = 1), no matter what the encryption key.
Similar properties are true of RSA in its simplest form. Most RSA used in practice includes message padding, which eliminates these properties, and the same could be done with MBXI. For some very specialized uses, the preceding properties could be helpful; the technical term is homomorphic encryption. We will analyze the partial homomorphic property of RSA in Chapter 8, Homomorphic Encryption and Crypto Search Engine.
As discussed in Chapter 5, Zero-Knowledge Protocols, padding is necessary to remove the (generally) undesirable properties. This means that a ciphertext string will be longer than the underlying message string.
You might be wondering whether MBXI is an authentic asymmetric encryption algorithm. My answer to this question is no; MBXI is a public/private key encryption algorithm but not a pure asymmetric encryption algorithm like RSA. Even if this peculiarity of MBXI has some interesting applications, for example, to share a key, it is absolutely not in the scope of MBXI to substitute the power of a symmetric algorithm such as AES.
To demonstrate the scheme of the shared key, I will reformulate the equation that determines the encryption step:
Suddenly, we notice a similarity with RSA’s encryption structure:
It’s just a matter of swapping the [x] parameter with (e), and it turns out that the two encryption schemes are similar.
In RSA, remember that (e) is a public parameter, and (N) is the public key of the receiver, given by N = [p]*[q].
In contrast, in MBXI, [x] is a secret encryption key (more similar to D-H), and (p) is a big public prime number.
Anyway, these comparisons will be useful to explain a couple of interesting attacks on RSA that have inspired me due to the similarity of the RSA and MBXI encryption schemes.
Unconventional attacks and self-reverse decryption on RSA
Section titled “Unconventional attacks and self-reverse decryption on RSA”The notion of an asymmetric backdoor was introduced by Adam Young and Moti Yung in their paper, Proceedings of Advances in Cryptology. An asymmetric backdoor can only be used by the attacker who plants it, even if the full implementation of the backdoor becomes public (for example, via publishing, being discovered and disclosed by reverse engineering, and more). This class of attacks has been termed kleptography; they can be carried out on software, hardware (for example, smartcards), or a combination of the two. The theory of asymmetric backdoors is now part of a larger field called cryptovirology. Notably, NSA inserted a paragraph on kleptographic backdoors into the Dual EC DRBG standard.
There exists an experimental asymmetric backdoor in RSA key generation. This OpenSSL RSA backdoor, designed by Young and Yung, utilizes a twisted pair of elliptic curves and has been made available. In this section, we will examine something that is a little bit different because it involves the injection of a parameter inside the modulo N of the RSA encryption function. Likewise, it’s possible to modify a few rows in the code of the OpenSSL library, and as a result, we will achieve the creation of a backdoor in RSA.
A backdoor is something that allows an attacker to spy on the communications between two or more people, and in cryptography, a backdoor allows the attacker to decrypt an unbreakable cipher by adopting a mathematical or physical implementation method.
In both cases, creating a backdoor needs a certain allocation of resources in terms of skills and preparation to inject the malware. Eventually, the result is to allow a third party (Eve) to spy on or modify the encrypted message. However, there is also another possibility to create an even more malicious backdoor than others: the sender himself (Bob) might have an interest in injecting a backdoor in his own encryption.
Important note
Implementing a backdoor for malicious purposes is a crime. So, I am warning you to consider this section as merely a theoretical way to understand that there is the possibility of implementing a backdoor in RSA.
It’s time to return to a question posed in Chapter 3, Asymmetric Encryption Algorithms: is this method of self-reverse decryptionan unreasonable model, and not representative of practical situations, or does it, instead, have practical uses? In other words, why or in which cases could it be reasonable to use a method like this to attack a network?
You can think of Bob as the administrator of a telecommunications company, a social network, or any cloud provider who is willing to spy on communications between users. But even in the cryptocurrency space, there should be interesting cases if Bob, the sender (in the case of a cryptocurrency payment), is able to perform a fake signature on the amount transmitted. He will probably be able to perform double-spending of this digital money. Finally, the self-reverse decryption method could also be used (in this case, for a good purpose) to retrieve the encrypted files of a ransomware attack.
As Simon Singh wrote in his 1998 book The Code Book, a report on the Wayne Madsen Report blog revealed that a Swiss cryptographic company, Crypto AG, had built backdoors into some of its products and had provided the US government with details of how to exploit these backdoors. As a result, the American government was able to read the communications of several countries. In 1991, the assassins who killed the exiled former Iranian prime minister Shapour Bakhtiar were caught; this was thanks to the interception and backdoor decipherment of Iranian messages encrypted using Crypto AG equipment.
Now, let’s explore how to create a logical backdoor using some of the functions we have learned about in this book.
We’ll start with one of the main paradigms and constraints in the RSA encryption stage. This paradigm states that once the cryptogram has been sent by Bob, the sender, it cannot be re-decrypted by the sender. That happens because only the receiver (Alice), the owner of the (p,q) private keys, can perform (N). Consequently, she is the only one who can decrypt the (c) cryptogram and receive the message [M].
Let’s refresh our knowledge from Chapter 3, Asymmetric Encryption Algorithms. In the following diagram, you can see the RSA algorithm encryption stage:

Figure 6.7 – The RSA encryption stage
Figure 6.7: The RSA encryption stage
In this stage, we have the following:
- [M] is the secret message
- (N) = p*q is Alice’s public key
- e is a public parameter (given)
I would remark that the encryption is performed by the sender (Bob) using Alice’s public key, which we will now rename (Na) to clarify that it is Alice’s public key:
Bob, the sender, knows the secret message, [M], but technically, he is not able to re-decrypt mathematically the cryptogram (c) once he delivers the cryptogram (c). That’s because it’s assumed that only Alice knows her private key [da].
Key generation
Alice’s public key, (Na), is given as follows:
[da] is given as follows:
Recall from Chapter 3, Asymmetric Encryption Algorithms, that this last inverse multiplication is the core of RSA’s algorithm because it allows you to retrieve the secret message, [M], hidden inside the cryptogram, (c), through the following operation of decryption:
Now it should be clear that one of the main paradigms of the RSA algorithm is that the cryptogram, (c), once it has been delivered by the sender, cannot be decrypted by anyone who isn’t the holder of the [da] private key.
However, I can demonstrate that this statement is not applicable in some particular circumstances when a backdoor is injected.
Now, let’s move on to analyze how to implement this pseudo-attack, which is able to generate self-reverse decryption (by Bob) of the cryptogram in RSA.
Remember again, here, we assume that Bob himself (the sender) is the author of the attack. Then, as you will see, it’s easy to demonstrate that Eve, an external attacker, can also replace Bob.
The public and private keys
- (Na): This is the public key of Alice (the receiver).
- (Nb): This is the public key of Bob (the sender).
- (e): This is a public parameter (given by the system).
- [da]: This is Alice’s private key.
- [db]: This is Bob’s private key.
Bob performs the “attack” by changing the parameters by himself.
Step 1: Encryption
Bob chooses a prime number, [Pb] > [M], such that he is able to perform a modified encryption of (M) obtaining a new cryptogram (c1):
He sends (c1) to Alice.
Important note
The [Pb] parameter is the backdoor that allows Bob to return the [M] message.
Step 2: Bob’s decryption
At this point, Bob calculates the [x] parameter, which is given by the multiplicative inverse of the function:
The result of this inverse multiplication is very important. It gives back [x], a special private key of Bob, which gives Bob access to the decryption of (c1). This is the “magic function” used by Bob to retrieve the [M] message.
Bob can now decrypt (c1) using [x] as his “private key” through the following function:
Bob can now mathematically retrieve the [M] message from the (c1) cyphertext. That goes against what is commonly stated by RSA: it is impossible for the sender to decrypt the cryptogram once it has been performed because the sender doesn’t hold the receiver’s private key.
Someone could counter that by saying that we have changed the RSA encryption, so we are dealing with a different algorithm and no longer with RSA. That is true to some extent but let’s see what happens when Alice decrypts (c1).
Step 3: Alice’s decryption
Here comes the interesting part of this method: once Alice receives the fake cryptogram, (c1), she is able to decrypt (c1) with her private key, [da], and retrieves the secret message, [M], keeping the RSA decryption stage unaltered:
Alice gets the [M] message by performing the RSA decryption, unaware of the fake (c1) cryptogram received.
As you can see in the following diagram, Bob can perform his self-reverse decryption of (c1) “modified cryptogram,” while Alice uses her private key to decrypt the fake (c1) cryptogram:

Figure 6.8 – A schema of Bob’s self-reverse attack
Figure 6.8: A schema of Bob’s self-reverse attack
It’s easy to demonstrate that if this attack is performed by Eve (an external attacker) who is able to inject her [Pe] parameter (backdoor) in Bob’s encryption stage, she can spy on the [M] message exchanged between Bob and Alice.
In the following diagram, you can see the schema of the attack (spying) taken from Eve:

Figure 6.9 – A schema of Eve’s spying attack (MiM)
Figure 6.9: A schema of Eve’s spying attack (MitM)
With this scheme, not only can Eve retrieve the [M] message, but she can also modify it by sending a fake new message, [M1], to Alice, deceiving Bob and Alice, and then recreating a new RSA encryption (original) after having read the message sent by Bob.
To make that possible, Eve has to face off with a problem: the counting of bits in the OpenSSL library. That is because the (fake) encryption stage generates an overflow of bits in (c1) that is much larger than the original (c) cryptogram. In mathematical terms, c1 >> c. This could be a problem if there is a preselected limit of bits given by the parameters of the algorithm. This limit could be related to the key length or other parameters in the algorithm, for example, the N modulo. In other words, if N = 2000 bits, then (c1) cannot be bigger than 2000 bits; otherwise, (c1) is not accepted.
I found a way to avoid this problem by adopting a compression algorithm of my invention, able to generate an output cryptogram in the (cx) < (Na) encryption stage. In this way, the cryptogram generated by the fake (c1) encryption stage is reduced to (cx) and accepted as a good parameter by the OpenSSL library, overcoming the problem of the bit-length limit. This compression algorithm can also be used for other scopes: for example, to compress and recompose a cryptogram in transmission to save bandwidth.
As you can see in the following diagram, Eve can spy on the [M] message transmitted by Bob and also modify it with [M1], sending to Alice a new cryptogram, (ce), re-generated with an original RSA encryption stage:

Figure 6.10 – Eve attacking through the compression algorithm
Figure 6.10: Eve attacking through the compression algorithm
Now we should be able to answer another question: if a digital signature is requested from Alice on the [M] message, is Eve able to perform this attack?
In other words, is there some way to counter-fight these attacks?
Let’s discover the answer in the next section, where I will talk about a new method of digital signatures that is valid not only for RSA but also for most of the private/public key algorithms.
A new protocol to protect RSA and asymmetric algorithms from spying
Section titled “A new protocol to protect RSA and asymmetric algorithms from spying”I will answer the question about whether it is possible to defend RSA against self-reverse decryption, and in general from spying method attacks, by saying that there are multiple ways to avoid these attacks depending on who performs the attack. One of the remediations to avoid these attacks is related to digital signatures (we looked at digital signatures in Chapter 4, Hash Functions and Digital Signatures). However, in the case of fake encryption and backdoors, as we have seen in the previous section, a special kind of digital signature is required to counter these attacks.
So, I invented this new protocol to guarantee the receiver will decrypt a non-manipulated cryptogram.
This protocol provides a digital signature on the cryptogram made by the transmitter.
Indeed, if Alice (receiver) requests Bob (sender) to digitally sign the cryptogram (c) with his private key [db], then Alice will be sure that no one has spied on or modified the [M] message and the cryptogram (c) was truly signed by Bob and performed with the original RSA encryption.
Let’s discover how this protocol works.
Bob signs the cryptogram (c) using his private key [db]:
Bob sends his signature (Sb) to Alice, and Alice can verify whether the following condition has been met:
With this operation, Alice (or everyone) finds the cryptogram through cv (cryptogram verification).
Then, if Alice finds out that the message [M] elevated to the public parameter (e) corresponds to the cryptogram received, so cv = c, then she can be sure enough that no backdoor will be injected into the algorithm:
- If cv = c then the message is accepted by Alice.
- If cv is not equal to c then Alice will refuse the message.
Indeed, performing the operation cv = c, Alice compares the cryptogram received with the cryptogram obtained from decrypting the (Sb) signature. If it is the same, then no backdoor was injected by a third party. (It is worth noting, of course, that in cryptography nobody can be 100% sure that there is no spy.) If Alice obtains cryptogram (c1) or (cx), or another cryptogram instead of (c), she understands something is wrong.
Important note
Here, the signature is performed on the public parameter cryptogram (c), not on the [M] message as is normally done. This has been done so the function can be performed by signing (c) directly and not its hash value. In practice it’s absolutely recommended to perform a digital signature on [M].
This protocol works for all cryptograms (c) regardless of the asymmetric algorithm selected, simply substituting with the private key of the sender the exponent that elevates the cryptogram (c).
In the next section, we will explore the digital signatures on the MBXI algorithm, and we will learn that there are different ways in which to digitally sign this algorithm.
Digital signatures on MBXI
Section titled “Digital signatures on MBXI”Returning to MBXI, we notice that [x], the reformulated encryption key, is able to perform the encryption:
[x] results in the inverse of [y], the decryption key, in the following function:
In mathematical language, the encryption equation looks as follows:
This result is the inverse of the decryption equation, [y]:
Let’s perform a test with numbers to understand it better:
- x = 3009
- y = 4955
If we input x = 3009 in the inverse function (mod p-1), we can find the result [y] using Mathematica:
That means if Bob sends a message using MBXI, he will share a [secret key] type with Alice.
Another problem arises: how is it possible to avoid a MiM attack in a symmetric algorithm?
As you can see, MBXI has more characteristics of an asymmetric algorithm than a symmetric algorithm, so let’s analyze the algorithms of the digital signature for MBXI.
As we have learned, MBXI could be defined in the same way as D-H, a shared key algorithm. However, in MBXI, in contrast to D-H, it is possible to perform a digital signature; in fact, we will discover that with MBXI there are different modes to digitally sign the message.
For more clarity, I want to recall the scope and functions of the digital signature.
Digital signatures should satisfy the following conditions:
- The receiver can verify the sender’s identity (authenticity).
- The sender cannot disclaim the transmission of a message (no repudiation).
- The receiver cannot invent or modify a document signed by someone else (integrity).
Moreover, after you have learned about my backdoor creation, let me add another condition that digital signatures should avoid:
- Anyone not authorized can’t look into the document of someone else without being detected (no spying).
This last condition will be one of the principal objects of our study. So, a typical scheme of digital signatures consists of three steps:
- An algorithm for key generation, (G), that produces a couple of keys, {(Pk) and [Sk]}, where (Pk) is the public key for the verification of the signature and [Sk] is the secret key owned by the signatory used to sign the [M] message.
- An algorithm for the signature, (S), that takes the message, [M], as the input (usually the hash of the message) and a secret key, [Sk], to produce a signature, (s).
- A final algorithm for verification, (V), takes the [M] message as input (usually, this is the hash of the message), the public key, (Pk), and a signature, (s), and based on that, it accepts or rejects the signature.
Given all these conditions and constraints, our digital signatures could be of two types:
- A direct signature: This is a scheme to retrieve the [M] message directly from the signature function (S). It is commonly used in RSA to perform the digital signature (S) on the message, as we have seen in Chapter 4, Hash Functions and Digital Signatures:
And its correspondent verification stage is.
- A signature with an appendix: It doesn’t need the original message to verify its validity (an example is ElGamal’s signature, in which the [M] message doesn’t need to be signed directly to verify the signature).
Now that we have understood the concepts of digital signature methods, we can dive deeper to analyze any single case applied to MBXI.
A direct signature method in MBXI
Section titled “A direct signature method in MBXI”The direct signature is a method that directly involves the message [M] signature. However, as we have seen in Chapter 4, Hash Functions and Digital Signatures, in some cases, it is much better to apply the hash of the message H(m); otherwise, it could be possible to recover the original message [M] from (S).
Let’s see how this method works in MBXI. From the MBXI algorithm, we have the following parameters:
- Alice’s private key: [a] (SK a)
- Alice’s public key: (K A) (PK a)
- Bob’s private key: [b] (SK b)
- Bob’s public key: (K B) (PK b)
Bob’s public key is given by the following function:
Assuming Bob sends a message, [M], he will choose a parameter, [e B], known by Alice and Bob only. That’s because, as we said, the function of encryption is verified only under determinate values of [e B]:
Bob and Alice convene to determine [e B] autonomously, in the sense that [e B] is generated step by step, through a process that I have called joint iteration. This process consists of a progressive iteration of [e B] until the functions of encryption results are verified.
So, we can reformulate (as mentioned earlier) the preceding encryption equation into the following mode:
Here, [x] is the result of the preceding functions of encryption.
If [M] is the message sent in the session and H(m) is its corresponding hash value, Bob can sign H(m) in the same way he performed the encryption:
Here, (S) is the digital signature.
When Alice receives the cryptogram (C), she will also receive the signature (S) calculated with the hash of the corresponding [M] message.
Alice can decrypt the signature (S) with the same equation that was used to decrypt [M] but with a different [e B]. As we have discovered, Bob has iterated [e B], bringing its value into the next step of verification of his encryption function:
Here, [y] is given by the following decryption function:
As you can see, Alice verifies the signature (S) with the public parameter of Bob, (K B), combined with her secret key [a].
Nobody other than Bob can be the sender. An attacker could only use Bob’s private key [b] in order to perform the following signature equation (S):

However, that means an attacker can use the discrete logarithm to return from (K B) Bob’s private key [b]. But as we have seen, that is a very hard problem now.
Indeed, remember that [x] is the result of the preceding function (S) and it needs Bob’s private key [b] to be performed.
But let’s examine another method of digital signature to apply to MBXI.
The appendix signature method with MBXI
Section titled “The appendix signature method with MBXI”An alternative method to signing the message with MBXI is called a signature with an appendix.
The signature with appendix is a method that we have already found in ElGamal (Chapter 4, Hash Functions and Digital Signatures). The MBXI algorithm arrives at determinate equality of results, which proves the truth of the signature.
From the MBXI algorithm, we, again, have the following parameters:
- Bob’s private key: [b] (SK b)
- Bob’s public key: (K B) (PK b)
These are given by the following function:

The scope of the signature algorithm, (S), is to produce proof, (s), given by Bob such that Alice (the receiver) can verify, (V), its authenticity.
To make this consistent, Bob creates a hash from the secret [M] message such that it will not be possible for anyone who doesn’t know the original message to recover [M] from H(m).
Hence, Bob wants to sign H(m) to demonstrate effectively he is who he claims to be.
Step 1: Key generation (G)
Bob chooses a random number, [k], in the (Zp) ring. Then, he calculates (r):
Step 2: Digital signature (s)
Bob computes the digital signature (s) based on the hash of the H(m) message combined with the random key [k] and his private key [b] as the following:

Bob sends the triple (H(m), s, r) transmission to Alice.
Step 3: Verification of the signature (V)
Alice verifies the following two functions (V) and (V1):


If
, Alice accepts Bob’s signature. This could be considered a standard method of signing a message M through its hash.
Important note
The random key [k] has to be kept secret and changed at each digital signature session.
Now that we have examined the different methods of digital signatures in MBXI, let’s look at a mathematical demonstration of the digital signature in MBXI.
A mathematical demonstration of the MBXI digital signature algorithm
Section titled “A mathematical demonstration of the MBXI digital signature algorithm”In this section, I will demonstrate how the digital signatures in MBXI work mathematically.
Indeed, for the properties of power elevation, elevating the generator (g) to the equation in step 2 covered earlier, we have the following:

From this, we can substitute
and
and obtain the following:

That is what we wanted to demonstrate.
Now, let’s observe what happens with numbers to better understand how these digital signatures work.
If we take, as input, the same parameters of the previous example of encryption, we have the following:
- p = 7919
- g = 7
- e B = 1
This is Alice’s private key, [a]:
- a = 123456
This is Bob’s private key, [b]:
- b = 543210
The public key of Alice is as follows:

And the public key of Bob is as follows:
Recall that the [M] message encrypted by Bob was as follows:

First, let’s explore the direct signature (S).
Step 1: Bob calculates the hash of the [M]= 88 message; suppose that the following is the result:

Using our well-known Mathematica Reduce function, we gain [x], the secret key of encryption:

Using H(m) combined with [x], Bob calculates the digital signature (S):

Bob sends
to Alice.
Step 2: Next, Alice can verify whether the (S) signature effectively corresponds to Bob.
Elevating the signature to [y], the result must correspond with H(m) (mod p):

As we have seen, [y] is the decryption function given by the public key of Bob, (K b), elevated to Alice’s secret key, [a], added to the [e B] parameter:
Substituting values in the equation, we have:


Alice takes (S) and elevates it to [y]. The result should be the corresponding value of H(m) (mod p):

That corresponds to the following:


If V = V’, Alice accepts the signature.
Indeed, Alice can verify that:

As I have explained in this section, there is another way to sign and verify a signature with MBXI.
Let’s view an example using numbers from the signature to form an appendix.
All the parameters (modulo, private and public keys, generator, and e B) remain the same as before.
Bob picks up a random number, [k]:

Bob calculates (r):

Now Bob is able to perform the (s) appendix signature:



Bob sends (H(m), s) = (827, 4543) to Alice.
Note that, here, to work with low numbers, I have calculated the modulo (p) of H(m).
Alice verifies the following:
So, Alice accepts the (s) signature.
As we have completed the discussion about digital signatures in the MBXI algorithm, I want to present the evolution of the two algorithms MB09 and MBXI, in the particular environment of the blockchain.
The evolution of MB09 and MBXI: an introduction to MBXX
Section titled “The evolution of MB09 and MBXI: an introduction to MBXX”In 2020, I developed and patented another protocol that involves both MB09 and MBXI algorithms.
In my mind, one of the problems not wholly solved in Satoshi Nakamoto’s paper was the consensus problem. Another issue (also noticed in MB09) is that we are dealing with a centralized system.
I wanted to overcome these problems, so I needed to implement a scheme such that the following conditions are met:
- The protocol runs in a decentralized model.
- The consensus for the validity of transactions is given by a mathematical deterministic function and not by a statistical probability of attack.
In other words, the problem of the double-spending of digital money has to be solved in a cryptographic way, instead of with a consensus based on “game theory.” Indeed, the consensus problem that Satoshi Nakamoto chose is a method based on the theory of the Byzantine generals problem.
This problem, explained through an informal description, involves a group of generals that obey a superior’s order to attack an enemy. If the number of generals (generals = nodes) is more than three and some of them are dishonest, rebelling against the king’s decision to attack, the attack could fail. In the following diagram, you can see the difference between a coordinated and an uncoordinated attack:

Figure 6.11 – The Byzantine Generals Problem
Figure 6.11: The Byzantine generals problem
Similarly, Satoshi Nakamoto relied on this theory when he supposed that the nodes of a system (the Bitcoin network), deputed to control the double-spending and the truthfulness of transactions, based on the consensus problem, could verify the truthfulness of the transactions. Satoshi Nakamoto supposed that the system could support an attack in which the generals would, for the most part, be honest.
Not everyone knows that in Bitcoin (as in most other cryptocurrencies, too), the deputed miners (through the proof of work to the validation of transactions) can’t support an attack if the number of fidelity nodes is less than two-thirds of the total number of nodes involved. So, it’s not enough that most of the nodes are trustable (51%), but the system requires, at the very least, 75% of the nodes to be trustable in order for them to be reliable.
It’s rather strange that Satoshi Nakamoto, after having projected a very sophisticated protocol, mostly based on cryptography, to generate, spend, and give value to Bitcoin, switched to such a non-deterministic method to determine the consensus for the transactions.
Indeed, the consensus problem of Satoshi Nakamoto doesn’t give mathematical evidence of a deterministic result. As I have said, it could only be valid if about 75% of the nodes inside of the system are trustable. Furthermore, if an attack occurs, the system will crash, and all the transactions will be invalid.
Important note
Proof of work is a method invented by Satoshi Nakamoto to produce and transact Bitcoins. It consists of solving a challenge based on SHA-256 (we have already explored the SHA family of algorithms in Chapter 4, Hash Functions and Digital Signatures).
To avoid the problem of double-spending and maintain anonymous, peer-to-peer transactions, we have to rely on mathematical proof that gives deterministic validity. I imagined a system in which a private blockchain can be governed and controlled only by computers. For example, an decentralized anonymous organization is almost completely managed by computers.
This concept of a Decentralized Autonomous Organization (DAO) was unknown until 2016, or at least it wasn’t used yet. I use the concept of DAO as an organization that is self-regulated by a computer network or grid computing with high computation capacity, which is able to perform transactions and run programs to pursue a goal or multiple goals guided only by algorithms. Eventually, this is supported by artificial intelligence to make some decisions. The purpose is to create a decentralized organization, administrated by computers and not by humans. Or better, humans’ role in such an organization could be to simply encode the software through the so-called smart contracts. To avoid non-determinism, note that artificial intelligence would be used for decisions, not for consensus.
It doesn’t matter who owns or is in charge of the hardware’s maintenance. That is because this organization could be defined as a meta-infrastructure with no headquarters, no board of directors, no limited time to survive, and, perhaps in the future, no human interference either. That’s because hardware machines such as virtual machines exist in the cloud and run their algorithms in a virtual place where time and space don’t have any real connotations. If we leave out the problems linked to such an organization’s liability and the philosophical concept of creating an entity that is able to live eternally and is unstoppable, what remains is pure mathematics and logic.
Theoretically, this scheme could be unstoppable because, if it’s well developed, this organization could be split among a virtual internet organization that is completely agnostic to human power and regulated by algorithms.
Now, I will introduce this protocol and will give an overview of it. In the following diagram, I have represented a decentralized scheme connected through some large central star nodes:

Figure 6.12 – A decentralized architecture
Figure 6.12: A decentralized architecture
Now it’s time to go through the steps of the MBXX protocol for digital money transactions in greater detail.
An explanation of the MBXX protocol
Section titled “An explanation of the MBXX protocol”The first stage of this protocol is the initialization phase of all the parameters. It represents the first-level conditions.
The scheme consists of three steps, starting with the initialization stage of the algorithms adopted, parameters, and keys.
Initialization stage
All the parameters of the protocol are initialized. These parameters are as follows:
- The algorithms that are used in this protocol, such as (M/alg), (T/alg), and (ZK/Proof), for instance, SHA-256, MB09, RSA, D-H, MBXI, ZK13, zk-SNARK, and more.
- An algorithm that has been selected for the digital signature (this mostly depends on the encryption algorithm used).
- The parameters that are used in the algorithm, such as the private keys of the users, [a], [b], [c]….[n], and the correspondent public keys, (A, B, C,…, N).
- The amounts of digital money detected by each account of the users from where the private keys have been derived.
- The generator, (g).
- The random numbers to generate ZK protocols, [k1, k2, …, kn].
After this stage, we proceed with delineating the protocol.
Step 1: Check the total balance with a meta-algorithm
A first-level algorithm or a meta-algorithm, represented by the (M/alg) notation, is deputed to check the initial balance and the balances generated after the transactions.
It is not necessary to use the system described in MB09 to perform the homomorphic balance; in fact, there could be something better than this. However, here, I will use the correspondence used in MB09 as a mere representation.
So, let’s return to the extended Fermat’s Last Theorem, as we know from MB09:


This is (M/alg). It is made up of both the preceding equations and its role is double:
- It is used to check for the isomorphic balance (Z) in a certain instance of time.
- It is used to re-balance the system if new digital money is injected into the system (that is, the sum of the amount of digital money expressed in isomorphic balance during a certain time, t0, t1, …, tn, changes the amount because of the initial balance (Z0) augmented if new digital money is injected).
In other words, the isomorphic calculation represents each term of the first preceding equation, [a p, b p, …, n p], transposed as being correspondent with (A, B, …, N).
So, as we have already discovered, it will be very difficult for an attacker to recover [a] even if they know its corresponding public value, (A). That is because this is a one-directional function. In this way, the balance of the accounts will be protected with an appropriate padding process. Additionally, you can decide to use another (M/alg) notation to obtain this correspondence, such as a hash system, where [a] corresponds to (A)---> H[a], or another checksum system.
Here, you can discover that [a, b, c, …, n] are the amounts of digital money at a determinate time: t0, t1, t2, …, tn. Each of these elements corresponds to the amount of money belonging to a person or a computer, such as Alice, Bob, Carl, and Nate. Corresponding to any private parameters (the amounts of digital money), [a], [b], …, [n], we have each public correspondent parameter: (A), (B), …, (N). These public parameters represent the isomorphic values transposed by the hidden parameters in a public domain.
In other words, [a] corresponds to (A), [b] to (B), …, [n] to (N).
Step 2: The transaction process
Transactions among users take place at any point in time: t0, t1, …, tn. You can figure out that here, [M] is a set digital amount of money, where [Ma, Mb, …, Mn] are single amounts of digital money exchanged between the network participants at a particular time, t0, t1, …, tn. For instance, we can think of [a0] = 10,000* as the initial balance of (*A*) and \[*Ma\] = 1,500 as an amount of money transferred from the account of (A) to account (B).
The exchanging of [Ma], [Mb], …, [Mn] between users comes across as a cryptographic algorithm that I have called Transmission/Algorithm (T/alg), which is made by a private/public key algorithm similar to MBXI.
So, after the first transaction performed, for instance, between (A) and (B) in times (t0) and (t1), the amounts of the single [a0] and [b0] accounts will be changed to [a1] and [b1]. For instance, if (A) transfers [Ma] = 10,000, then the single balance of (A) at time (t1) will be as follows:



A digital signature has to be performed in (T/alg) in order to identify the sender to the receiver.
So, in this case, using MBXI, Alice adds her digital signature in this way:

So, (Sa) is the digital signature added by Alice and (Sa) is given applying the hash of the message (Hma) elevated to the encryption key [x], where (Hma) is given by the following function: (Hma) = Hash of [M].
And, as you remember from MBXI’s signature, the private key [x] is given by solving the following equation:

Here, the (Sa) signature transmitted along with the cryptogram (c) will be verified by (B) in the opposite way:

After Bob has verified that (Hma) corresponds to [M], he accepts the signature and receives the payment.
Step 3: The verification process
This step gets all the transactions verified by the administrator of the system. All of this process could be implemented by an autonomous organization similar to a DAO.
The system will operate the first validation on the homomorphic balance to check whether there is double-spending among the calculations. If this verification is okay, then after the transactions (made peer to peer through T/alg), the admin (or, better, the admins, because the system is computer decentralized) will proceed with a blind check of the accounts of the transmitter and the receiver to verify that the balance of the accounts will cover the amount of money transmitted. This verification will be done by applying a particular zero-knowledge protocol. I have called this algorithm ZK/Proof.
This ZK/Proof is able to detect whether a user tries to trick the system by sending a fake verification parameter in order to try to set up double-spending. In this case, for example, a user could try to make a payment, but their balance doesn’t cover the amount processed. This particular ZK/Proof recognizes the problem automatically and refuses the transaction, without any method of consensus based on a proof of work or other proofs to demonstrate. You can see a scheme of the first transaction and balance performed at time (t0-t1) with the MBXX protocol in the following diagram:

Figure 6.13 – The scheme of the first stage of the MBXX protocol
Figure 6.13: The scheme of the first stage of the MBXX protocol
If no other transactions are performed in (t1), then the protocol will go on with times (t2), (t3), and so on, given by a timestamp.
Notes on the MBXX protocol
Section titled “Notes on the MBXX protocol”If you’re curious about this protocol, this section offers more information, focusing attention on particular functions.
Referring to the preceding scheme, we have the function (T/alg(t0-t1)). This function expresses all the operations performed between the users at the time (t0-t1).
Important note
Pay attention to the - sign in the (t0-t1) brackets. It is not a subtraction, but it means that we are moving from t0 to t1.
So, the function is as follows:



So, the secret amount, [a1], is generated by [a0] added or subtracted by amount [Ma], corresponding to amount [b1], generated by the transferred/received amount, [Mb]. Following this operation, the corresponding public parameter, (A1), is generated by the previous (A0) parameter subtracted by (Hma) if amount [M] is received by (B). The same goes for (B1), which is generated by the previous (B0) parameter added to or subtracted by the hash of the original amount transferred or received by (A).
This (Z0) scheme represents the amount of money in circulation in the system at a given instant, (t0). It doesn’t change if no digital money is injected into the system. Instead, if a transaction takes place, it will change the corresponding users’ values (parameters) involved in the transaction.
As we discussed in step 2, the transaction process uses any public/private key algorithm. It’s easy to demonstrate that using MBXI, as the system works well. Because the amounts of digital cash are transferred directly from user to user, this can be considered as the effects of a peer-to-peer system, where no third party is involved in the transactions. So, theoretically, no financial or banking institution is required to perform the transactions.
A digital signature (S) is added by the sender and verified and accepted by the receiver if the decryption of the (V) signature returns the hash of [M] = (Hm). You can see this in the scheme applied to the preceding diagram in the representation of (T/alg):


Here, (Sa) is Alice’s signature, and (Sb) is Bob’s signature.
The final step is the verification process, and it’s related to a zero-knowledge protocol.
The first verification is as follows:


To be valid, the result must be Z1 = Z0.
This means that the public parameter, (Z1), which is the result of the homomorphic balance related to time (t1), is correspondent to (Z0) related to time (t0) even if the partial elements of the equation changed in value. This condition guarantees (if no money is injected into the system between times t0 and t1) that the transfer of money between the users into the networks is neutral or balanced.
In other words, the amounts of the transactions made by the users of the system are balanced. However, the verification of this condition by itself does not guarantee that no double-spending has been processed. In fact, it is possible that double-spending was performed if the parties operating in the system are untrustworthy.
Hence, here, we need to implement a blind verification or homomorphic validation to check that the single amounts of the accounts don’t fall below zero. If this condition is also satisfied, then the system (DAO) will ensure that no double-spending has been performed.
Finally, we can say that the necessary condition to satisfy the system is a neutral homomorphic balance. The condition to be validated is that any single balance never falls below zero.
Conclusions on the MBXX protocol
Section titled “Conclusions on the MBXX protocol”This protocol should overcome the two problems identified at the beginning of this section:
- The protocol runs in decentralized autonomous mode with no third parties involved in the transactions.
- The consensus for the validity of transactions is given by a mathematical function and not by a statistical probability of attack.
In terms of the first problem, decentralized autonomous mode, I have already appointed the transactions to work through a cryptographic algorithm performed between the users in a peer-to-peer system. Moreover, the verifier (a computer) can only block a transaction if the verification process isn’t complete.
The verifier doesn’t know how much money has been transferred or the number of single-money accounts. It only knows the original amount of money put into the system and whether a balance is misaligned.
In terms of the second problem, consensus, it can be demonstrated that a pure cryptographic model can perform it. This is based on two verifications: the isomorphic balance represented by (M/alg) and the zero-knowledge proof (ZKProof) that gives a blind comparison and states whether a single account balance is positive or negative, accepting only positive balances.
For the verification nodes, there is finally the question of whether you would use an open blockchain or a permissioned blockchain. In my view, that is a matter of implementation. Let’s not get too far ahead of ourselves: it’s a big feat to learn the mathematical basis of the protocol and verify the consensus problem!
After having learned about some protocols in public/private key encryption, let’s explore an interesting algorithm in symmetric encryption that is related to a new kind of method called Lightweight encryption, particularly used for IoT and streaming telecommunications.
Lightweight encryption
Section titled “Lightweight encryption”Lightweight encryption Algorithms (LEAs, or simply LEs) are a novel collection of cryptographic algorithms designed to have a small implementation footprint and very low energy usage. Lightweight encryption targets an extensive range of devices that are resource-constrained, such as IoT end nodes and RFID tags, which can be implemented in hardware and software across a wide range of communication technologies.
The motivation for lightweight encryption is to leverage lower memory, lower computational resources, and lower power supplies in order to deliver secure solutions that can operate across resource-constrained devices. Lightweight cryptography must optimize implementation costs, speed, security, performance, and energy usage for resource-limited devices. The lightweight encryption algorithm has a low implementation footprint, which takes less computational power to process data, especially in IoT (Internet of Things).
In the modern era of data transmission and storage, IoT is very important for our society’s future. IoT is a complex system that allows us to connect cars and devices, manipulate and monitor home systems, and manage big utility corporations’ services.
To manage this sensitive, crucial system, it is important to follow the three main rules at the same time:
- Data must run at high-speed data transmission rates.
- The encryption computational load and memory requirements must be minimized to operate on IoT devices that have few resources and often rely on batteries for power.
- Messages transmitted must be safe and protected because they very often carry sensitive data.
In order to be compliant with these three rules, it’s necessary to find a kind of encryption that is fast but at the same time secure.
Let’s explore a new algorithm in the space that has got my attention and I have worked on reviewing.
Cybpher algorithm
I propose in this section a new algorithm developed by CyberusLabs, a Poland- and US-based company, that was reviewed by me in 2022. Cybpher is a symmetric algorithm based on OTP (one-time pad) algorithm principles. Cybpher is faster than other symmetric algorithms because its simple mathematical operations can be processed in a shorter time. It requires very little memory and very few computational cycles. It could also be considered secure because the logical operations were inspired by one of the most robust ciphers: transposition bitwise operations. But as you know now, after having read this book, nothing can be considered 100% secure if based on classical mathematical operations.
A general scheme of Cybpher LE encryption/decryption can be reproduced as follows


Figure 6.14: This scheme shows the method of encryption and decryption proposed in LE Cybpher
The minimum processor requirement is 8-bit, and the minimum memory requirement is just a little over 2 KB.
The logic behind Cybpher is simple but simple doesn’t mean weak. Conversely, cryptography complexity can potentially hide security problems. In a computation analysis done by comparing the principal algorithms of the history of cryptography, we see that algorithms with a high degree of complexity are subjected to more weakness. I remind you that Kerckhoff’s principle states: “The weakest part of a chain breaks the entire chain.” In other words, complexity is the enemy of security because a longer chain is more likely to be broken. Currently, the most secure, theoretically unbreakable algorithm of conventional cryptography is Vernam. The mathematical operation behind the Vernam algorithm, as we have seen in Chapter 2, Symmetric Encryption Algorithms, is just one: XOR (Exclusive OR). Just to recap, XOR is a Boolean operator and expresses a sum “bit by bit” between the plaintext and a random key of the same length.
The mathematics of Cybpher is also largely based on Boolean logic operations. But here, there are three differences from the Vernam algorithm:
- Changing the key at every session by autogenerating it
- The ability of this algorithm to generate infinite keys
- Encrypting infinite data starting from one single input key
Indeed, the algorithm relies in large part on a SWAP function to generate the new keys of encryption. The key is a construct of the current transmission and the previous key, which ties both ends of the transmission pair by recording the entire history of transmission between the devices in the current key.
This process connects the two devices of the sender and receiver and creates a mutually authenticated device pair. Therefore, in Cybpher, the active key shared by two or more IoT devices results in an authentication made first to control the exact correspondence with the device selected, then a secure data transmission.
We will analyze the differences between Cybpher and other symmetric algorithms in the next section. For now, we will assert that Cybpher can overcome the problem of a small message being transmitted without using any particular technique of message lengthening. With Cybpher, even if the message sent is very short (as mostly happens in IoT), the encryption works well.
You might be wondering how such a system would manage transmission errors. This is a good question to raise once you’re ready to think about the implementation. For the purposes of this book, however, we’ll stick to discussing the algorithm from a theoretical point of view.
Let’s now demonstrate this algorithm with an encryption stage for a single letter.
Encryption with Cybpher
Section titled “Encryption with Cybpher”Suppose we want to encrypt the word “hello” with Cybpher. The algorithm processes an encryption character by character. So, we proceed with a simple example of the first letter, “h.” After that, we generate a new encryption key for the letter “e” and so on until the end of the message. I will show the first letter and how to generate the first and the second key, then all the other steps are obviously similar to those.
We know that h=104 in ASCII code, so we have to encrypt this number.
Step 1: Generate a “key buffer” shuffling 256 numbers (from 0 to 255) and randomizing their position.
Key Buffer (before encryption):
210 50 213 113 21 239 59 11 164 7 158 172 24 176 68 236 80 215 70 153
139 207 42 223 101 136 78 237 147 132 151 150 127 0 232 233 196 133 85
26 154 222 123 227 209 180 145 225 118 117 126 49 192 19 128 74 111 52
37 30 160 187 39 130 69 46 98 200 81 211 23 142 177 212 189 246 114 71
148 106 61 58 131 152 203 115 156 90 185 205 124 83 103 17 29 108 137
182 165 144 161 67 13 251 97 16 62 107 170 228 149 125 173 234 197 143
167 159 169 32 208 250 63 235 243 193 18 253 178 244 195 254 229 84
226 65 140 8 247 79 186 166 241 76 201 206 48 224 94 15 168 55 220 45
174 109 99 60 34 194 102 146 110 135 44 245 240 12 119 217 157 36 216
28 14 238 41 73 93 91 219 255 25 47 54 198 214 202 191 75 1 96 86 9
138 188 4 104 35 33 27 120 181 199 100 155 179 20 230 6 221 88 112 95
92 134 72 31 231 190 183 163 51 57 248 40 66 10 38 89 105 218 171 121
122 2 204 53 87 129 252 43 184 3 56 64 242 141 249 162 77 116 82 175
22 5
Step 2: Pick up a random number x that will be the first key (OTP) among the 256 randomized numbers of the Key Buffer. Suppose it will be x=210, so the correspondent position in the Key Buffer is x1=221.
Step 3: Do the sum between these two numbers x+x1 (mod 256) and generate the following parameter y: 210+221= 175 (mod 256). Find the corresponding value for the y position inside another randomized buffer (called the offset buffer), again shuffling 256 numbers. So, we find that the corresponding portion value is K1 = 6 at position 175 of the Offset Buffer.
Offset Buffer:
85 29 207 24 82 164 118 35 240 249 248 132 205 126 194 138 20 45 4 162
243 250 7 101 163 222 169 106 211 103 25 43 137 80 14 176 33 47 3 144
86 244 54 107 64 152 220 247 56 44 181 16 251 156 1 175 214 23 239 59
149 13 112 121 238 32 134 210 196 135 102 136 198 52 202 161 108 229
19 216 209 232 120 223 110 204 2 34 26 36 245 70 97 140 30 68 119 113
206 60 96 151 21 200 84 124 81 87 109 95 237 218 31 174 153 187 197 65
46 10 203 122 69 127 182 98 183 159 180 67 147 104 221 166 217 235 0
78 129 39 133 226 79 141 72 49 228 66 94 173 9 139 233 208 190 12 252
105 185 99 155 5 179 177 167 40 77 158 227 88 125 117 37 234 55 6 165
212 199 246 157 15 111 253 143 22 38 172 188 62 28 213 8 91 128 131
142 17 186 191 145 83 224 189 93 192 53 11 170 63 115 123 242 130 76
42 74 90 114 184 231 18 148 41 254 73 201 57 178 255 195 61 241 219 58
89 150 27 236 71 146 230 75 154 171 215 116 51 160 225 92 48 193 100
168 50
Step 4: Encryption of the plaintext h=104:
Perform XOR between the key K1 and plaintext h:


Find the corresponding number at position 110 and substitute 110 with 149 using the Key Buffer. This is the cryptogram of h=149:

Now comes the interesting part: the generation of the new key session (valid to encrypt the next letter “e”).
From the Key Buffer, pick up the last number:

Substitute number 5 with the ciphertext c = 149.
This will be the next session key
.
Test and performance
In this section, we will analyze some tests on Cybpher to measure the comparison with other algorithms. In particular, we have chosen to compare the speediness of Cybpher with AES 256, because it is the standard algorithm for symmetric encryption, and AES 128 as it is the standard lightweight symmetric algorithm.
The tests were conducted by CyberusLabs (the owner of Cybpher) on two platforms: an embedded system with a 32-bit ARM Cortex A8 processor running Debian 7.11 and a 64-bit Intel i7 desktop system running Ubuntu 18.04. It is worth noting that, at the time of writing, these tests have not yet been independently verified.
The tests included several different types of input data, different input sizes, and different processing iterations ranging from 1 to 1000.
In the following table, we show the results of the tests on the Intel i7 processor. We are comparing Cybpher with AES128 and AES256 (the standard for symmetric encryption):

Figure 6.15: This image shows the performance times of LE Cybpher compared with AES 128 and AES 256
Important note
Unless stated otherwise, throughput values are in Mbps (Megabits (one million) per second).
We have also measured the entropy of the system. In the following table, we show the entropy related to the encryption with Cybpher:

Figure 6.16: This image shows the encryption entropy performed by Cybpher on different data inputs
Lightweight encryption is an emerging type of encryption based on high-speed and lower-power computation. It is mainly used in IoT and other environments where mini processors are required to process and transmit information.
In these sections, I have presented Cybpher, a new kind of LEA that aims to become a standard in the world of LE algorithms.
I have shown the scientific basis of this algorithm, its architecture, and an example of its implementation.
Finally, some tests demonstrated how fast and computationally easy it is.
In this limited demonstration of the algorithm, Cybpher could be considered secure against plaintext attacks and brute-force attacks when the key is truly random, and the key and offset buffers remain well protected. That said, of course, it is new to all of us, and time will tell.
Summary
Section titled “Summary”In this chapter, we analyzed some of my inventions. These algorithms and protocols were primarily invented to solve some challenges related to public/private encryption systems.
Among these protocols, we first saw MB09, which aimed to become a standard for secure digital payment transactions processed in the telecommunication field.
Then, we examined MBXI, a public/private encryption algorithm that was implemented as an alternative to RSA. We explored how it is possible to use a digital signature with this algorithm and the different signature methods: direct and with an appendix.
Moving on, we explored the last protocol: MBXX. This is an evolution of the MB09 and MBXI protocols to overcome the problem of double-spending and the so-called consensus problem. This protocol could be used in the future for a decentralized payment system as an alternative method to proof of work (or proof of stake or other additional proofs) proposed for the validation of transactions in cryptocurrency, based on statistical accuracy.
So, now you have learned about new methods and systems in public/private encryption, such as MB09, MBXI, and MBXX, and you have also become familiar with some schemes in centralized and decentralized crypto systems related to the new era of digital currency.
Finally, I analyzed a new algorithm called Lightweight encryption, a method of encryption valid for IoT telecommunications.
These topics are important because you now have a deep understanding of complex cryptographic schemes. In the following chapters, we will explore many correlations with these topics, particularly in Chapter 8, Homomorphic Encryption and Crypto Search Engine, where I will explain the basics of the CSE system.
Now that you have learned about these new algorithms, we can explore another fascinating topic: elliptic-curve cryptography.




