summaryrefslogtreecommitdiff
path: root/games/caesar/caesar.6
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2004-02-18 20:08:32 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2004-02-18 20:08:32 +0000
commit4bff99253908958cc3a732f1ce62d2eea8d555ba (patch)
treeb8aba9f490dd0d814c91ee4a694e40a873a5525f /games/caesar/caesar.6
parent202192e36d491839f0546e5f85aa4b0e8da0423b (diff)
document rot13;
based on a PR from Free/Net, which for the life of me i cannot find. thanks, whoever submitted it.
Diffstat (limited to 'games/caesar/caesar.6')
-rw-r--r--games/caesar/caesar.625
1 files changed, 15 insertions, 10 deletions
diff --git a/games/caesar/caesar.6 b/games/caesar/caesar.6
index 5829b0c06b8..5cf5c12770c 100644
--- a/games/caesar/caesar.6
+++ b/games/caesar/caesar.6
@@ -1,4 +1,4 @@
-.\" $OpenBSD: caesar.6,v 1.6 2003/06/03 03:01:39 millert Exp $
+.\" $OpenBSD: caesar.6,v 1.7 2004/02/18 20:08:31 jmc Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,11 +33,13 @@
.Dt CAESAR 6
.Os
.Sh NAME
-.Nm caesar
+.Nm caesar ,
+.Nm rot13
.Nd decrypt caesar cyphers
.Sh SYNOPSIS
.Nm caesar
.Op Ar rotation
+.Nm rot13
.Sh DESCRIPTION
The
.Nm
@@ -50,23 +52,26 @@ The optional numerical argument
.Ar rotation
may be used to specify a specific rotation value.
.Pp
-The frequency (from most common to least) of English letters is as follows:
+If this utility is invoked as
+.Nm rot13 ,
+it will rotate by 13 characters.
+This format is commonly used on
+.Tn USENET
+and in some of the databases used by the
+.Xr fortune 6
+program to
+.Dq disguise
+their content.
.Pp
+The frequency (from most common to least) of English letters is as follows:
.Bd -filled -offset indent
ETAONRISHDLFCMUGPYWBVKXJQZ
.Ed
.Pp
Their frequencies as a percentage are as follows:
-.Pp
.Bd -filled -offset indent
E(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),
D(3.8), L(3.4), F(2.9), C(2.7), M(2.5), U(2.4), G(2),
P(1.9), Y(1.9),
W(1.5), B(1.4), V(.9), K(.4), X(.15), J(.13), Q(.11), Z(.07).
.Ed
-.Pp
-Rotated postings to
-.Tn USENET
-and some of the databases used by the
-.Xr fortune 6
-program are rotated by 13 characters.