Search for a tool
Alberti Cipher

Tool to decrypt/encrypt Alberti's cipher, a medieval cipher with 2 alphabets using a dial/wheel/disk to encrypt/decrypt.

Results

Alberti Cipher -

Tag(s) : Poly-Alphabetic Cipher

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Alberti Cipher' tool for free! Thank you!

Alberti Cipher

Alberti's Disk Decoder

 






Without knowing the parameters

Alberti's Disk Encoder

 






Answers to Questions (FAQ)

What is the Alberti cipher? (Definition)

The Alberti cipher is a polyalphabetic cipher system that uses two mobile concentric disks which can rotate.

How to encrypt using Alberti cipher?

Encryption uses a disk with two alphabets, one fixed (stabilis) one moving (mobilis). By rotating a disk, it shifts an alphabet to the next letter.

To encrypt, the disk is set in one position, the initial shift (which can be zero) corresponds to the number of letters shifted at the beginning.

Example: The disk is composed of ABCDEFGHIJKLMNOPQRSTUVWXYZ for the large outer ring, and abcdefghijklmnopqrstuvwxyz for the small inner ring. A is in line with a, B is inline with b, etc. Rotating a disk by 2, then A is in line with c, and the initial shift becomes 2.

Each letter of the plain text found on the outer ring, is replaced by the corresponding one (the one aligned) in the inner ring.

By default, every 4 characters (4 = period), the disk is rotated clockwise of 1 letter (1 = periodic increment), this changes the substituting alphabet.

Example: Encrypt DCODE with the parameters: initial shift: 1, periodic increment: 2, period: 3.
Alphabets are such as ABCDEFGHIJKLMNOPQRSTUVWXYZ is aligned with bcdefghijklmnopqrstuvwxyza.
The period begins, D is coded by e, C by d, O by p, the period (length 3) ends, the disk is rotated by 2 letters.
Alphabets are now aligned like this: ABCDEFGHIJKLMNOPQRSTUVWXYZ with defghijklmnopqrstuvwxyzabc, the new period begins, etc.
The encrypted message is edpgh

How to decrypt Alberti cipher?

Le decryption needs the disk (or the 2 alphabets) and the parameters: initial position, period and shift.

To cipher a message, the disk is set with the corresponding initial shift. Each letter is identified on the inner disk, and is coded by the letter aligned in the outer disk.

By default, every 4 characters (4 = period), the disk is rotated counter-clockwise of 1 letter (1 = periodic increment).

Example: The parameters are: initial shift: 1, periodic increment: 2, period: 3, and the cipher message edpgh.
Alphabets are such as ABCDEFGHIJKLMNOPQRSTUVWXYZ is aligned with bcdefghijklmnopqrstuvwxyza
The period begins, e is decoded by D, d by C, p by O, the period (length 3) ends, the disk is rotated by 2 letters.
Alphabets are now aligned like this: ABCDEFGHIJKLMNOPQRSTUVWXYZ with defghijklmnopqrstuvwxyzabc, the new period begins, etc.
The original plain text is DCODE

How to recognize an Alberti ciphertext?

The ciphered message has a polyalphabetic index of coincidence.

In its original version, the message has only these letters: ABCDEFGHIKLMNOPQRSTVXYZ and &, no J, U or W

The mention of De Cifris refers to the treaty published by Alberti presenting his cipher.

What are usual alphabets for Alberti's wheel?

The outer disk (stabilis) is usually ABCDEFGILMNOPQRSTVXZ1234, but there is also ABCDEFGHIKLMNOPQRSTVXYZ2 or ABCDEFGHIKLMNOPQRSTVXYZ- (which are rarer).

The inner disc (mobilis) is less well defined and several versions coexist:

usqomkhfdbacegilnprtxz&y (De componendis cifris - Archivio di Stato Venezia CCX VI 1, Ferraioli Ms. 360-1, Vaticanus Latinus 5118, Vaticanus Latinus 5357)

vsqomkhfdbacegilnp-rtxz7 (De componendis cifris - Marcianus 4702)

zyxuronmilhgedcba&qtpsfk (De componendis cifris - Chigi M II 49)

xihcnzvrypagqldfts&moebk (De componendis cifris - Riccardianus 927)

mqihfdbacegklnprtuz&xyso (English & Italian Wikipedia)

c&bmdgpfznxyvtoskerlhaiq (Ars Cryptographica)

How to decipher Alberti without period or shift?

One can crack Alberti by brute-forcing all combinations of period, initial shift and periodic increment. Use the 'Bruteforce attack' button.

When was the Alberti cipher invented?

Leon Battista Alberti would have invented this wheel around 1460.

Source code

dCode retains ownership of the "Alberti Cipher" source code. Any algorithm for the "Alberti Cipher" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Alberti Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Alberti Cipher" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Alberti Cipher" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/alberti-cipher
In a scientific article or book, the recommended bibliographic citation is: Alberti Cipher on dCode.fr [online website], retrieved on 2025-04-16, https://www.dcode.fr/alberti-cipher

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Alberti Cipher' tool for free! Thank you!


https://www.dcode.fr/alberti-cipher
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback