[Music]
[Applause]
hello everyone this is mr. random
generator in this video I will be
showing you a project that I have made a
year ago which is a digitalized enigma
machine so as you can see I've made it
in a basic plastic box and wrap it
around with some carbon rod vinyl wrap
and it does have a few basic controls if
you are familiar with enigma machine you
will know that it does have some
rotors a keyboard that you type on and
another keyboard that you see the
outcome of the encrypted letter if you
don't know I will provide a link in the
description so you can check out also
video made by the channel numberphile so
you can see how that works in detail
anyway so how that thing works so in my
case I do have these three displays
seven segment displays which basically
correspond to rotors in an original in
my machine and I have a dot matrix
display which we will be displaying
letters on it
as you can see we have a basic on off
switch and encryption and decryption
switch and we have dialed there which is
a multi-function dial which helps us to
select the rotor positions and also
choose the letter as well so how it
works well first we need to power that
on initially I have actually created a
plug for it and later on I need it for
another project so I just take basic USB
wire and solder it into it and by the
way we will see it inside in just a
second so this unit is actually powered
between 4 waltz and
12 waltz so I have Powerbank
near here so we can use that as our
power source let's just quickly plug it
in turn it on and switched on yeah there
we go as you can see it's now it's
powered on
we have minor defect right it is
probably caused by some defective wiring
inside that but anyway it's not a big
issue at all so let's start by putting it
into the encryption mode and choose our
rotor positions let's easy-to-remember
10/10 and so now if I change the tire
position as you can see we can choose
letters let's say which is key K press
it it encrypts to K again so
that is actually a nice coincidence so
we can easily it actually is usually
remember the outcome so now we switch
back to the decrypt position and hold
that down in order to reset everything
so now you reset everything we just go
back to the initial position which is 10
let's go to the K and we press it as it
you can see it goes back to K it is not
a good demonstration since it basically
doesn't seem let's try so another one
let's reset it yes so there we go back
to the encryption in correct mode or
actually we chose to zero so reset it
again
that's good that's this time let's go
five five five five
let's choose L L encrypted into u so we
switch back to decrypt mode reset it
again back to zero zero zero and we go
to the same position by five and now if
I go to you
if you press that
and it doesn't work actually it does
that sometimes actually I think it first
registered that my pressed and doesn't
display it it actually have some
feedbacks but you'll get the idea so
let's look at the insides of it let's
close it and open it up out there I have
a basic voltage regulator which converts
5 between 5 and 12 volts into the 5
volts which is fitted into stm32 and
that is basically the brain of this
project it does all the encryption and
decryption stuff it is it is basically
actually an Arduino on steroids but
anyway after I have created a few boards
that is basically controllers for the
7-segment displays and the dot matrix
one so this is the dot matrix and this
back in there is the 7-segment display
so if you look at those those are all
home edged and stuff like that but
actually at the time I made this project
I only have single layered copper PCB so
what I did was since the routing on
watching these lines on it is pretty
complex so I just created double side
double sided design so the traces will
be much simpler and then I've patched it
and matched those holes and super glue
them together it's really junky solution
so but it kind of works actually so that
is basically the summary of this project
hope you like that and I will provide
github link in the description so you
can maybe want to do to create your own
and you can go ahead and get the code
and stuff like that hope you like it see
you next time take care bye
[Music]