Virtual SG-41

Using Virtual SG-41

Unpacking the machine, enciphering and deciphering your first message, and setting the keys.

Overview

Virtual Schlüsselgerät 41 is an accurate 3D simulation of the SG-41. This page takes you through the basics of unpacking and using the machine, enciphering and deciphering a message, and setting the internal and external keys.

It runs in your web browser, with nothing to install. Google Chrome is recommended. On a Mac, use Chrome or Firefox. On a phone or tablet, a fast processor gives the best experience.

Moving the viewpoint

When you first start the simulation, you’ll see the SG-41 folded up, just taken out of its carrying case. To look around the machine, click (or touch, on a touch screen) anywhere that isn’t on the machine itself, such as the table or floor, and drag. To move your position relative to the machine, hold down Shift and click and drag as before. To zoom in or out, use your scroll wheel if you have one, or pinch with two fingers. From here on, I’ll assume you’re on a PC or Mac with a mouse and keyboard, to keep things simple.

Virtual SG-41 folded up for storage or carrying
Virtual SG-41 folded for storage or carrying.

Unpacking the SG-41

The first thing to do is unpack the SG-41 so it’s ready to use. You work Virtual SG-41 by moving your mouse over the machine and looking for where the cursor changes to a pointing finger.

Click once on the handle to unfold it into its working position.

This handle is probably why the machine got the name “Hitler mill”: it looks a bit like a coffee grinder.

Click once on the document holder to raise it until it locks in place, ready to hold the work to be enciphered.

Virtual SG-41 from the left, labelled: output letter, ink cartridge, paper release, letter counter, V/E knob, paper advance and counter reset
Virtual SG-41, left-hand side: main components.
Virtual SG-41 from the right, with its main components labelled
Virtual SG-41, right-hand side: main components.

Enciphering your first message

Before you can turn the handle, you must press a single key on the keyboard, which locks down.

Click the S key on the machine’s keyboard, or type S on your own keyboard.

The handle is now released.

Click on the handle once, or press Enter on your computer keyboard, to turn it a full 360 degrees and encipher the letter S.

A copy of the two paper tapes is shown at the bottom right of the screen: the SG-41 prints two tapes, one for the plain text and one for the encrypted message. If Virtual SG-41 is at its default starting settings, the top tape should show the S you pressed and the bottom tape the encrypted letter I.

For each turn of the handle, the pin-wheels inside step in a complex pattern, changing the next encryption.

Press G, then turn the handle to encipher it. The enciphered letter should be D.

You may notice there’s no space bar on this keyboard. Instead, the letter J (the red key) was used as a space. J is rarely used in German and can sometimes be replaced with I and still be readable.

Press J to enter a space, and turn the handle again. The encrypted letter for this position is T.

To send a number, the operator would normally write out the word for it.

Encipher the number FORTY ONE, remembering to put a J between the two words.

On the enciphered tape, the letters are automatically spaced into groups of five, to make it easier to read and count how many letters have been encrypted. If you’re used to a UK or US keyboard, note that in Germany (even today) the Z and Y keys are swapped.

If all has gone well, your message tape should show IDTVP EFQGC WS. At the front left of the top of the machine is the counter, which keeps track of how many letters you have encrypted or decrypted. It should show 012, as you’ve just entered twelve letters (including spaces).

Look at the tapes at the back left of the machine and you may just see the message starting to appear on the real tapes. To see the whole message, there is a paper advance lever and a paper release button. Turn the machine round (click on the background and drag) to find the paper advance lever on the left side of the machine: a grey lever with a yellow tab on top. Click on it to feed some paper out of the printers; you may need to do this more than once to see the whole message. The message would then have been sent to the recipient in Morse code by radio.

Deciphering the message

To decipher the message, whether on another machine far away or on this one to test it, we need to do a few things to put the SG-41 into decipher mode.

Virtual SG-41 from above, labelled with the steps: 1, V/E knob to E; 2, counter reset to 000; 3, unlock pin-wheels; 4, reset wheels to A B C D 01 00; and the current setting mark
Setting Virtual SG-41 up to decipher the message.

First, there is a knob at the back of the left-hand side of the machine marked with yellow letters V/E (Verschlüsselung means encryption, Entschlüsselung decryption).

Click on the V/E knob to change it from V to E.

Next, we want to reset the counter to 000.

Click on the counter reset knob several times, until the counter shows 000.

To decipher our message correctly, the SG-41’s pin-wheels must be set back to their starting positions.

Click on the pin-wheel window to open its cover and show the wheels.

The default external key when Virtual SG-41 loads is A B C D 01 00 (the starting positions of the six pin-wheels are called the external key), so we need to set each wheel back to match. If you try to drag the pin-wheels, you’ll find they don’t move: they are locked in place by the mechanism, and you need to press the release button before you can set them by hand.

Press the button to the right of the pin-wheels (shown above with the yellow dot), which releases the pinion gears and rack so the wheels can be turned.

You can now change each pin-wheel.

Click on the pin-wheel you want to move, then drag up or down to change its setting.

You may need to click and drag a few times to get back to the right starting position. The current setting shows in the window when the pin-wheel cover is closed, and there is a red mark just to the left of each wheel showing its current position. Change each wheel until you have A B C D 01 00. Don’t worry about pressing the release button again afterwards: the mechanism re-engages automatically when the handle turns.

Now we’re ready to decipher the message.

Type each letter of the message IDTVP EFQGC WS, turning the handle once for each letter.

The spaces in the message are only there to make it easier to read, and should not be typed as the letter J this time: the spaces are already encoded in the message letters.

If you do this correctly, you should see the enciphered text you typed on the left-hand tape and the deciphered plain text on the right. Notice how, in E (decipher) mode, the SG-41 cleverly swaps the tapes over, so even though you were typing the enciphered message this time, the enciphered text always appears on the left-hand tape and the plain text on the right.

A button on top of the machine marked Einfärbung Papier releases the tape so it can be pulled out of the machine and torn off along the top of the window.

Paper and ink

The paper for the two printers is kept in a drawer underneath the machine.

Click on the grey handle on the drawer to open it.

Virtual SG-41 with the paper drawer open, labelled: paper supply drawer, paper holder lid, two reels of paper tape, and the pull tab to slide the holder
The paper supply drawer, open.

The paper tape reels are mounted on a slide, which the operator pulled out using the tab at the front.

Slide the paper reels out by clicking on the tab on the right inside the drawer.

There are two tapes in the holder, one on top of the other, and the top of the holder swings open to get at them. You’ll never run out of paper on Virtual SG-41, though. Clicking the tape holder or the drawer cover puts everything back, ready for use.

The ink for the printers is held in rollers in a cartridge on top of the machine; you can see its top, with a handle, marked 1 and 2 in yellow.

If the printing started to look faded, you could switch to the other side of the cartridge and carry on. On Virtual SG-41, just click on the top of the ink cartridge to see it swap over. The ink rollers inside would have been re-inked from an ink pad regularly.

If you ran out of ink completely, you could still use the SG-41: the encrypted letter shows on a white wheel through a small window after each encryption (middle left of the machine).

Setting the internal key

A new external key (the starting positions of the pin-wheels) was set for each message, but each day the actual pin settings of each wheel were also changed, completely altering how messages are enciphered. This is called the internal key.

This section explains how to set the internal key using Virtual SG-41’s setup mode. You can also learn it with the interactive tutorial in the simulation itself: click the button marked Setting Tutorial.

Click the Setup Mode button at the top left of the simulation.

This opens the pin-wheel window on top of the machine (if you haven’t already), shows the key sheets and moves you to a good viewing position for setting the internal key.

Round the edge of each pin-wheel are pins that can be set inactive (pushed through to the left) or active (to the right). The first two pin-wheels have 25 pins, the middle two 23 and the right-hand two 24.

Press the button marked with a yellow dot, labelled “Bolzenräder frei”. This releases the mechanism so the pin-wheels can be turned.

Before you start setting the pins, the SG-41 lets you reset them all to inactive. You can do this instantly by clicking Quick Reset on the right, or watch it done in full by clicking Auto Reset and waiting while Virtual SG-41 uses the SG-41’s built-in reset mechanism.

The key sheets

On the left of the screen is an example key sheet (Schlüssel für Gerät 41), which would have been replaced monthly. It has two parts: one with a set of 6 random letters for each day of the month, and a second with 26 lines of active and inactive settings, marked A to Z.

Some real key sheets were recently discovered in the Czech archives; they are shown below. The article about this find, with more information, is: Eugen Antal, Carola Dahlke and Robert Jahn (1 December 2025), Revealing secrets from WWII: the original German instructions of Schlüsselgerät 41, Cryptologia, DOI:10.1080/01611194.2025.2557311.

A real SG-41 key sheet, Schlüssel für Gerät 41 Nr. 7b, listing a six-letter Tagesschlüssel for each day of the month
An example daily key sheet. From Eugen Antal, Carola Dahlke and Robert Jahn (1 December 2025), Revealing secrets from WWII: the original German instructions of Schlüsselgerät 41, Cryptologia, DOI:10.1080/01611194.2025.2557311.
A real SG-41 monthly table (Monatstafel) of pin settings
An example monthly table (Monatstafel). From Eugen Antal, Carola Dahlke and Robert Jahn (1 December 2025), Revealing secrets from WWII: the original German instructions of Schlüsselgerät 41, Cryptologia, DOI:10.1080/01611194.2025.2557311.

Let’s assume today is the 22nd. (Today’s date is highlighted in bold for you automatically, but click on the row marked 7 22 OZDSMJ and it will be selected.) You should see 6 letters marked. On the second sheet, you then pick the 6 lines of pin settings for those letters. For the 22nd the letters are O Z D S M J, so you would set the first pin-wheel to the settings in the O row of the second sheet, the second pin-wheel to the Z row, and so on. The correct pin-wheel settings are shown for you automatically at the bottom (Monatstafel).

Look at the first column, A, of the pin settings (the section at the bottom), which has 6 rows of o and + signs. An o means set the pin to the left (inactive) and a + means set it to the right (active). So in this case, for the first pin-wheel position (A A A A 01 00), only the 3rd and 6th wheels should be active. To help you, Virtual SG-41 highlights the pins in red or green to show which are correct and which need moving. The real SG-41 wasn’t so helpful: you had to set all of these by hand, using the screwdriver kept at the front right of the machine.

To change a pin between active and inactive, just click on it.

Click both red pins until you have the right setting.

Now you just need to do the same again for every position on every pin-wheel.

Move the first pin-wheel to the letter B.

The position you should be setting is shown in blue on the Monatstafel sheet. The B setting for row O is a + (active), so that pin needs pushing through to the active side (right).

You can do this one wheel at a time (remember, you’ve reset all the pins to inactive, so you only need to set the ones marked +). Alternatively, the Next Position button on the right of the screen steps all the pin-wheels on one position, so you can set them that way.

Carry on setting all the pins on every pin-wheel (or, if you get bored, click Auto Set to do it all for you). Once they’re all correct, the internal key is set.

If you’re wondering why the last two pin-wheels have numbers rather than letters like the rest, the answer, according to the article above, is that each station in a network with an SG-41 had a station number. This two-part number (for example 18 37) changed each quarter and was set on the fifth and sixth wheels when sending. When decrypting, you set the last two wheels to the sending station’s number.

Looking inside the SG-41

This simulation reproduces the SG-41’s interior mechanism and movement, so you can learn how it works and marvel at the technology of the time. To see inside, tick Open Case in the control panel at the top right. On the real machine, the interior is reached by removing each of the levers and knobs on the outside, then a few small screws. Try enciphering a few letters with the case off and see how many parts are involved. It’s very busy in there!

The View Section list lets you show only particular parts of the machine, with the rest transparent or hidden.

Tick Demonstration and the SG-41 will keep typing SECRET MESSAGE automatically, so you can see everything working.

If your computer struggles to show the whole mechanism smoothly, try turning the Detail Level down.

The Model list switches between the standard SG-41 and the SG-41Z, and Transparent Case shows the mechanism through a see-through case.

Augmented reality (Android only)

An augmented reality version, where the SG-41 is placed on a real table using your phone’s camera, is available when you run Virtual SG-41 on a recent Android phone (Google Chrome recommended). When the simulation loads, a Start AR button should appear at the bottom of the screen.

Find a well-lit, open, flat area (such as a table) and move the phone around until a blue circular reticle appears. Tap the screen to place the SG-41 there. Tap the paper holder and the handle to open them, then try pressing a key and tapping the handle to encipher a letter. A large button at the lower left of the machine opens the top cover, so you can see it working inside.

Unfortunately the iPhone doesn’t currently support WebXR for augmented reality, so it can’t run in the iPhone’s browser.

Virtual SG-41 in augmented reality on an Android phone
Virtual SG-41 in AR mode on Android with Google Chrome.