mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-26 09:46:17 -04:00
Add initial functionality
Added "To Morse Code" and "From More Code" functions under the category "Encryption / Encoding". "To Morse Code" accepts 3 arguments: 1. Format options: e.g. ./- or Dot/Dash 2. Letter delimiter e.g. <space> or <newline> 3. Word delimiter e.g. <newline> "From Morse Code" accepts 2 arguments: 1. Letter delimiter 2. Word delimiter
This commit is contained in:
parent
e3c977934b
commit
230ba5ff67
3 changed files with 212 additions and 0 deletions
|
@ -85,6 +85,8 @@ var Categories = [
|
|||
"Substitute",
|
||||
"Derive PBKDF2 key",
|
||||
"Derive EVP key",
|
||||
"To Morse Code",
|
||||
"From Morse Code",
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -2952,5 +2952,46 @@ var OperationConfig = {
|
|||
value: Cipher.SUBS_CIPHERTEXT
|
||||
}
|
||||
]
|
||||
},
|
||||
"To Morse Code": {
|
||||
description: "Translates alphanumeric characters into International Morse Code.<br><br>Ignores non-Morse characters.<br><br>e.g. SOS becomes ... --- ...",
|
||||
run: MorseCode.translateTo,
|
||||
inputType: "string",
|
||||
outputType: "string",
|
||||
args: [
|
||||
{
|
||||
name: "Format options",
|
||||
type: "option",
|
||||
value: MorseCode.FORMAT_OPTIONS
|
||||
},
|
||||
{
|
||||
name: "Letter delimiter",
|
||||
type: "option",
|
||||
value: MorseCode.LETTER_DELIM_OPTIONS
|
||||
},
|
||||
{
|
||||
name: "Word delimiter",
|
||||
type: "option",
|
||||
value: MorseCode.WORD_DELIM_OPTIONS
|
||||
}
|
||||
]
|
||||
},
|
||||
"From Morse Code": {
|
||||
description: "Translates Morse Code into (upper case) alphanumeric characters.",
|
||||
run: MorseCode.translateFrom,
|
||||
inputType: "string",
|
||||
outputType: "string",
|
||||
args: [
|
||||
{
|
||||
name: "Letter delimiter",
|
||||
type: "option",
|
||||
value: MorseCode.LETTER_DELIM_OPTIONS
|
||||
},
|
||||
{
|
||||
name: "Word delimiter",
|
||||
type: "option",
|
||||
value: MorseCode.WORD_DELIM_OPTIONS
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue