-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added iprefix, oprefix and xdialog features
- Loading branch information
1 parent
b8e5d1b
commit 7a6522f
Showing
13 changed files
with
130 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include "encodings.h" | ||
|
||
const char *EncodingNames[]= {"octal","dec","hex","uhex","base64","ibase64","pbase64","xxencode","uuencode","crypt","ascii85","z85",NULL}; | ||
const char *EncodingDescriptions[]= {"Octal","Decimal","Hexadecimal","Uppercase Hexadecimal","Base64","IBase64","PBase64","XXEncode","UUEncode","Crypt","ASCII85","Z85",NULL}; | ||
int Encodings[]= {ENCODE_OCTAL, ENCODE_DECIMAL, ENCODE_HEX, ENCODE_HEXUPPER, ENCODE_BASE64, ENCODE_IBASE64, ENCODE_PBASE64, ENCODE_XXENC, ENCODE_UUENC, ENCODE_CRYPT, ENCODE_ASCII85, ENCODE_Z85, -1}; | ||
|
||
|
||
char *EncodingNameFromID(int id) | ||
{ | ||
int i; | ||
|
||
for (i=0; Encodings[i] != -1; i++) | ||
{ | ||
if (Encodings[i]==id) return(EncodingNames[i]); | ||
} | ||
|
||
return(""); | ||
} | ||
|
||
|
||
char *EncodingDescriptionFromID(int id) | ||
{ | ||
int i; | ||
|
||
for (i=0; Encodings[i] != -1; i++) | ||
{ | ||
if (Encodings[i]==id) return(EncodingDescriptions[i]); | ||
} | ||
|
||
return(""); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef HASHRAT_ENCODING_H | ||
#define HASHRAT_ENCODING_H | ||
|
||
#include "common.h" | ||
|
||
//provides certain values for use in frontends like .cgi and xdialog | ||
|
||
extern const char *EncodingNames[]; | ||
extern const char *EncodingDescriptions[]; | ||
extern int Encodings[]; | ||
|
||
char *EncodingNameFromID(int id); | ||
char *EncodingDescriptionFromID(int id); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "frontend.h" | ||
|
||
const char *LineEndingNames[]= {"none","lf","crlf","cr",NULL}; | ||
const char *LineEndingDescriptions[]= {"None","Unix newline","DOS carriage-return and newline","carriage-return",NULL}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef HASHRAT_FRONTEND_H | ||
#define HASHRAT_FRONTEND_H | ||
|
||
#include "common.h" | ||
|
||
//provides certain values for use in frontends like .cgi and xdialog | ||
|
||
extern const char *EncodingNames[]; | ||
extern const char *EncodingDescriptions[]; | ||
extern int Encodings[]; | ||
|
||
extern const char *LineEndingNames[]; | ||
extern const char *LineEndingDescriptions[]; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters