Everyone, and welcome back into this video will be discussing about the game's architecture and also
throughout the course, we'll also be discussing about the envelope encryption.
So the Autumn Games architecture consists of three major components.
One is the games interface.
So games interface is where we interact to so we can interact via console.
We have UCLA SDK, so this all terminates adult gamers interface level.
No Games interface is interconnected video games, host and games host.
Indeed, back in this interconnectivity it gissen so even gamers at the back end it HSM very extensively
know.
What really happens is that let's say you have the data to encrypt.
Let's say the data is that this is epilepsy, so this is the data.
So you want to get it done.
So you send the data to the gamers interface Nokia's interface in the backend.
It interacts with the games host.
You have the customer master key, which is associated with the games host and your data is in.
And then together this component becomes the games back.
And so from there you have the encrypted data.
Now encrypted data is encoded in base64 and it is sent back to, you know, this entire part of data
being sent over the network.
It also brings certain disadvantages because you have the data and you're sending the data over the
network.
Now, along with that, one important part to remember is that the games will only accept the people's
connection.
So you cannot really have a plain text connection that it only accepts the deal, connection or the
network.
Now, since there is a network which has been involved, there are certain disadvantages.
One among them is definitely the latency part.
But now let's look into some of the caveats.
The first one is that we can encrypt maximum of four cabi of data with the help of CMG.
So if you want to encrypt a huge amount of data, there is a I don't know.
The second point which we discuss is that since the data travels over the network, there will be latency
which can be involved.
And this is the reason why it is basically suggests their way of using the CMC, which is the customer
Moustaki, plus the detectives approach.
Now let's look into how exactly this works.
So this is also referred as the envelope encryption.
What happens here is that first we generate one customer, Moustaki right now, once are CNMC is gendre.
Do we go ahead and generate the data?
Now then we basically send the request of generating the data.
These interviews basically returns a plain text and the ciphertext version of that data.
So you have to that a better return.
One is the plaintext and second is the ciphertext.
Let's assume the green one is plaintext and the gray one is a cipher text.
No, we can use the plaintext data to encrypt the fires in the server because these are the two guys
regenerated.
Now, do remember that these two keys are directly associated with the same game so you can make use
of this plaintext data to encrypt the data.
So you have your plaintext data and encrypt with the plaintext data.
And now what you have is you have the ciphertext, the data.
So now what you can do is you can store the ciphertext data with the ciphertext key.
So this is the ciphertext key.
So you can store both of them together.
And once you have stored both of these things together, you can go ahead and delete the plaintext data
and you can delete the plaintext key on it.
So this is the encryption part.
So after you have complete the encryption process at the output, you have the encrypted data and you
have the encrypted.
So at this specific point, even though if your data is stolen by your attacker, all he has is he has
an encrypted data in encrypted key so he'll not be able to do anything here.
So now let's look into the decryption steps now in order for you to decrypt this data.
You have to call the decrypt interface because this key is still encrypted.
And in order to decrypt the data, you have to have the decrypted key on it.
So you call the decrypt interface Gamesville again, send you the plain text key.
You make use of the plain text to decrypt your data in your server or at the endpoint.
So this is the high level.
What are your steps about how you can.
Make use of the envelope encryption, which basically make use of the customer master key, but the
key approach.
So let me quickly show you and how exactly this might look like.
So I am the game is a CLIA pitch.
Now let's go bit down.
And these are the available commands.
Now, we are more interested in the general area because this is what we were discussing about, you
know, the general data is something which does what we were discussing it basically once we send legendary
dakis and basically Baycol, it gives us the plain text and the ciphertext version of the key.
So let's look into the synopsis.
So you have the general data.
We also have to specify the key IP and along with that will also have to basically specify the Giesbrecht.
So let's do one thing I copy of the pad here and let's try the ILU in this game.
It generate the data.
I'll specify that area I like and I'll also specify this espec work, which can typically be 256 or
128, which is.
All right.
So now what has happened here?
It has returned as the plain and the and ciphertext version of Docky.
So now want to have both of them.
You can go ahead and encrypt your data with this plaintext version of the key.
Once your data is encrypted, what you can do is you can store the encrypted data and this encrypted
key within your database or your location, and that's about it.
So during the decryption time, you can call the decrypt interface yet again and you will have this
plain text key through which you will be able to decrypt the data.
So this is the high level overview about the game's architecture, as well as the envelope encryption,
you remember that envelope encryption is an extremely important topic in games.
And typically, if you go in organizations, if they're using games at a larger scale and will have
encryption is something that probably they would be using, because one of the advantages of using the
data is that the restriction of the data datasets does not really appear over there.
So this is the high level overview.
I hope this video has been informative and I look forward to see you in the next video.