mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-12 09:11:37 -04:00
decoding
This commit is contained in:
parent
d92ff10585
commit
0407685ecf
3 changed files with 67 additions and 57 deletions
|
@ -17,10 +17,14 @@ TestRegister.addTests([
|
|||
op: "To GSM-7",
|
||||
args: ["Default", "Default", false],
|
||||
},
|
||||
{
|
||||
op: "To Hex",
|
||||
args: ["Space", 0],
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "To GSM-7: a real SMS",
|
||||
name: "To GSM-7: a real SMS sent over IP",
|
||||
input: "a long sms with escapes [{ ~}) should be enough to validate encoding & packing",
|
||||
expectedOutput: "61 10 fb ed 3e 83 e6 ed 39 e8 9e a6 a3 41 e5 f9 38 0c 2f cf 41 1b de 06 05 da f4 36 a9 14 68 8e 7e d7 d9 64 90 b8 0c 2a bb df f5 33 1a 44 7f 83 ec 61 76 9a 1c a6 97 41 65 f7 f8 4d 4e bb cf 20 13 08 1e 1e af d3 ee 33",
|
||||
recipeConfig: [
|
||||
|
@ -52,7 +56,7 @@ TestRegister.addTests([
|
|||
{
|
||||
name: "To GSM-7: padding a 7 chars SMS",
|
||||
input: "7Chars.",
|
||||
expectedOutput: "b7 21 3a 2c 9f bb 00",
|
||||
expectedOutput: "b7 21 3a 2c 9f bb 1a",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "To GSM-7",
|
||||
|
@ -69,9 +73,13 @@ TestRegister.addTests([
|
|||
input: "",
|
||||
expectedOutput: "",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "From Hex",
|
||||
args: ["Auto"],
|
||||
},
|
||||
{
|
||||
op: "From GSM-7",
|
||||
args: [],
|
||||
args: ["Default", "Default", true],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -86,7 +94,7 @@ TestRegister.addTests([
|
|||
},
|
||||
{
|
||||
op: "From GSM-7",
|
||||
args: [],
|
||||
args: ["Default", "Default", true],
|
||||
}
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue