mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-25 01:06:16 -04:00
pull from upstream
This commit is contained in:
commit
76f27dbcdb
20 changed files with 934 additions and 318 deletions
|
@ -84,8 +84,8 @@ const Categories = [
|
|||
// "RC2 Decrypt",
|
||||
// "RC4",
|
||||
// "RC4 Drop",
|
||||
// "ROT13",
|
||||
// "ROT47",
|
||||
"ROT13",
|
||||
"ROT47",
|
||||
// "XOR",
|
||||
// "XOR Brute Force",
|
||||
// "Vigenère Encode",
|
||||
|
@ -141,9 +141,9 @@ const Categories = [
|
|||
// "Standard Deviation",
|
||||
// "Bit shift left",
|
||||
// "Bit shift right",
|
||||
// "Rotate left",
|
||||
// "Rotate right",
|
||||
// "ROT13",
|
||||
"Rotate left",
|
||||
"Rotate right",
|
||||
"ROT13"
|
||||
]
|
||||
},
|
||||
// {
|
||||
|
|
|
@ -188,6 +188,44 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"ROT13": {
|
||||
"module": "Default",
|
||||
"description": "A simple caesar substitution cipher which rotates alphabet characters by the specified amount (default 13).",
|
||||
"inputType": "byteArray",
|
||||
"outputType": "byteArray",
|
||||
"flowControl": false,
|
||||
"args": [
|
||||
{
|
||||
"name": "Rotate lower case chars",
|
||||
"type": "boolean",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"name": "Rotate upper case chars",
|
||||
"type": "boolean",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"name": "Amount",
|
||||
"type": "number",
|
||||
"value": 13
|
||||
}
|
||||
]
|
||||
},
|
||||
"ROT47": {
|
||||
"module": "Default",
|
||||
"description": "A slightly more complex variation of a caesar cipher, which includes ASCII characters from 33 '!' to 126 '~'. Default rotation: 47.",
|
||||
"inputType": "byteArray",
|
||||
"outputType": "byteArray",
|
||||
"flowControl": false,
|
||||
"args": [
|
||||
{
|
||||
"name": "Amount",
|
||||
"type": "number",
|
||||
"value": 47
|
||||
}
|
||||
]
|
||||
},
|
||||
"Raw Deflate": {
|
||||
"module": "Default",
|
||||
"description": "Compresses data using the deflate algorithm with no headers.",
|
||||
|
@ -243,6 +281,44 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"Rotate left": {
|
||||
"module": "Default",
|
||||
"description": "Rotates each byte to the left by the number of bits specified, optionally carrying the excess bits over to the next byte. Currently only supports 8-bit values.",
|
||||
"inputType": "byteArray",
|
||||
"outputType": "byteArray",
|
||||
"flowControl": false,
|
||||
"args": [
|
||||
{
|
||||
"name": "Amount",
|
||||
"type": "number",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": "Carry through",
|
||||
"type": "boolean",
|
||||
"value": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"Rotate right": {
|
||||
"module": "Default",
|
||||
"description": "Rotates each byte to the right by the number of bits specified, optionally carrying the excess bits over to the next byte. Currently only supports 8-bit values.",
|
||||
"inputType": "byteArray",
|
||||
"outputType": "byteArray",
|
||||
"flowControl": false,
|
||||
"args": [
|
||||
{
|
||||
"name": "Amount",
|
||||
"type": "number",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": "Carry through",
|
||||
"type": "boolean",
|
||||
"value": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"Set Difference": {
|
||||
"module": "Default",
|
||||
"description": "Get the Difference of two sets",
|
||||
|
|
|
@ -10,7 +10,11 @@ import FromBase32 from "../../operations/FromBase32";
|
|||
import FromBase64 from "../../operations/FromBase64";
|
||||
import FromHex from "../../operations/FromHex";
|
||||
import PowerSet from "../../operations/PowerSet";
|
||||
import ROT13 from "../../operations/ROT13";
|
||||
import ROT47 from "../../operations/ROT47";
|
||||
import RawDeflate from "../../operations/RawDeflate";
|
||||
import RotateLeft from "../../operations/RotateLeft";
|
||||
import RotateRight from "../../operations/RotateRight";
|
||||
import SetDifference from "../../operations/SetDifference";
|
||||
import SetIntersection from "../../operations/SetIntersection";
|
||||
import SetUnion from "../../operations/SetUnion";
|
||||
|
@ -28,7 +32,11 @@ OpModules.Default = {
|
|||
"From Base64": FromBase64,
|
||||
"From Hex": FromHex,
|
||||
"Power Set": PowerSet,
|
||||
"ROT13": ROT13,
|
||||
"ROT47": ROT47,
|
||||
"Raw Deflate": RawDeflate,
|
||||
"Rotate left": RotateLeft,
|
||||
"Rotate right": RotateRight,
|
||||
"Set Difference": SetDifference,
|
||||
"Set Intersection": SetIntersection,
|
||||
"Set Union": SetUnion,
|
||||
|
|
|
@ -38,7 +38,7 @@ for (const opObj in Ops) {
|
|||
module: op.module,
|
||||
description: op.description,
|
||||
inputType: op.inputType,
|
||||
outputType: op.outputType,
|
||||
outputType: op.presentType,
|
||||
flowControl: op.flowControl,
|
||||
args: op.args
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue