Crank is short for "CRyptANalysis toolKit", and its overall purpose

is to provide a powerful and extensible environment for solving
classical (pen-and-paper) ciphers, providing as much automation as
possible. Classical ciphers include common schemes like monoalphabetic
substitutions, where each letter of the alphabet is mapped to another
(usually different) letter consistently through the text. The first
version of Crank is restricting itself to these special ciphers. Other
algorithms forever devoid of Crank's attentions include Enigma, RSA,
DES, MurkelFish, or anything else invented after 1900.
This commit is contained in:
obecian 2001-02-06 08:07:48 +00:00
parent 7f45ae808b
commit 66f3bffd10
6 changed files with 84 additions and 0 deletions

42
security/crank/Makefile Normal file
View File

@ -0,0 +1,42 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/02/06 08:07:48 obecian Exp $
DISTNAME= crank-0.0.5
CATEGORIES= security
NEED_VERSION= 1.348
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= crank
HOMEPAGE= http://crank.sourceforge.net
LIB_DEPENDS= gtk.1.2::x11/gtk+
MAINTAINER= Mark Grimes <obecian@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
USE_GMAKE= Yes
ALL_TARGET= crank
DATA= bift.dat slft.dat trift.dat
DOC= BUGS HISTORY LICENSE README ciphertext.txt
post-patch:
cd ${WRKSRC}; \
cp crank.h _bad_crank.h; \
sed -e s#!!LOCALBASE!!#${LOCALBASE}#g _bad_crank.h > crank.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/crank ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/crank
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/crank
.for file in ${DATA}
@ ${INSTALL_DATA} ${WRKSRC}/data/${file} ${PREFIX}/share/crank
.endfor
.for file in ${DOC}
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/crank
.endfor
.include <bsd.port.mk>

3
security/crank/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (crank-0.0.5.tar.gz) = 37632ee6b7f0f718b861117658fe8998
RMD160 (crank-0.0.5.tar.gz) = d85a76de710109252c1308aae45e4de8b9770f2b
SHA1 (crank-0.0.5.tar.gz) = b5cda9c630983fb35fbe3503342b4f35d5ce0e2f

View File

@ -0,0 +1,15 @@
--- crank.h.orig Mon Jan 29 23:44:56 2001
+++ crank.h Mon Jan 29 23:47:29 2001
@@ -67,9 +67,9 @@ typedef struct {
#define GLOBAL_TRANSFORMED_TEXT (gtk_editable_get_chars(GTK_EDITABLE(textarea), 0, -1))
-#define DEFAULT_SLFT "data/slft.dat"
-#define DEFAULT_BIFT "data/bift.dat"
-#define DEFAULT_TRIFT "data/trift.dat"
+#define DEFAULT_SLFT "!!LOCALBASE!!/share/crank/slft.dat"
+#define DEFAULT_BIFT "!!LOCALBASE!!/share/crank/bift.dat"
+#define DEFAULT_TRIFT "!!LOCALBASE!!/share/crank/trift.dat"
#define STR_FREQUENCY "Frequency"
#define STR_STANDARD_FREQUENCY "Standard Frequency"

View File

@ -0,0 +1 @@
classical (pen-and-paper) cipher cryptanalysis toolkit

11
security/crank/pkg/DESCR Normal file
View File

@ -0,0 +1,11 @@
Crank is short for "CRyptANalysis toolKit", and its overall purpose
is to provide a powerful and extensible environment for solving
classical (pen-and-paper) ciphers, providing as much automation as
possible. Classical ciphers include common schemes like monoalphabetic
substitutions, where each letter of the alphabet is mapped to another
(usually different) letter consistently through the text. The first
version of Crank is restricting itself to these special ciphers. Other
algorithms forever devoid of Crank's attentions include Enigma, RSA,
DES, MurkelFish, or anything else invented after 1900.
WWW: ${HOMEPAGE}

12
security/crank/pkg/PLIST Normal file
View File

@ -0,0 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/06 08:07:48 obecian Exp $
bin/crank
share/crank/bift.dat
share/crank/slft.dat
share/crank/trift.dat
share/doc/crank/BUGS
share/doc/crank/HISTORY
share/doc/crank/LICENSE
share/doc/crank/README
share/doc/crank/ciphertext.txt
@dirrm share/crank
@dirrm share/doc/crank