Method

Write all letters and numbers randomly in a grid with columns and rows indexed by the word ADFGVX.

  A D F G V X
A N A 1 C 3 H
D 8 T B 2 0 M
F E 5 W R P D
G 4 F 6 G 7 I
V 9 J 0 K L Q
X S U V X Y Z

Then, for some plaintext, replace each letter with the index where it is placed. So

Plaintext: WAR
W -> FF
A -> AD
R -> FG

Ciphertext: FFADFG

Examples

.ADFGVX
A21JUNE
D178DCM
FBRTVWX
GAF3GH4
VI5KL6O
XPQ9SYZ
Let plaintext be STARRY DYNAMO. Then,
S -> XG
T -> FF
A -> GA
R -> FD
R -> FD
Y -> XV

D -> DG
Y -> XV
N -> AV
A -> GA
M -> DX
O -> VX

which is our ciphertext.