move scripts from /usr/libdata to /usr/old/libdata
[unix-history] / usr / src / games / caesar / caesar.6
CommitLineData
d77d25ce 1.\" Copyright (c) 1989, 1991 The Regents of the University of California.
77fed4b3
TH
2.\" All rights reserved.
3.\"
91cff1e1 4.\" %sccs.include.redist.man%
77fed4b3 5.\"
d77d25ce 6.\" @(#)caesar.6 5.4 (Berkeley) %G%
77fed4b3 7.\"
d77d25ce
CL
8.Dd
9.Dt CAESAR 6
10.Os
11.Sh NAME
12.Nm caesar
13.Nd decrypt caesar cyphers
14.Sh SYNOPSIS
15.Nm caesar
16.Op Ar rotation
17.Sh DESCRIPTION
77fed4b3 18The
d77d25ce 19Nm caesar
3f26f967 20utility attempts to decrypt caesar cyphers using English letter frequency
77fed4b3 21statistics.
d77d25ce 22Nm Caesar
77fed4b3 23reads from the standard input and writes to the standard output.
d77d25ce 24.Pp
77fed4b3 25The optional numerical argument
d77d25ce 26Ar rotation
77fed4b3 27may be used to specify a specific rotation value.
d77d25ce 28.Pp
3f26f967 29The frequency (from most common to least) of English letters is as follows:
d77d25ce
CL
30.Pp
31.Bd -filled -offset indent
3f26f967 32ETAONRISHDLFCMUGPYWBVKXJQZ
d77d25ce
CL
33.Ed
34.Pp
3f26f967 35Their frequencies as a percentage are as follows:
d77d25ce
CL
36.Pp
37.Bd -filled -offset indent
3f26f967 38E(13), T(10.5), A(8.1), O(7.9), N(7.1), R(6.8), I(6.3), S(6.1), H(5.2),
d77d25ce
CL
39D(3.8), L(3.4), F(2.9), C(2.7), M(2.5), U(2.4), G(2),
40P(1.9), Y(1.9),
3f26f967 41W(1.5), B(1.4), V(.9), K(.4), X(.15), J(.13), Q(.11), Z(.07).
d77d25ce
CL
42.Ed
43.Pp
44Rotated postings to
45.Tn USENET
46and some of the databases used by the
47.Xr fortune 6
3f26f967 48program are rotated by 13 characters.