mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 08:58:30 +01:00
35 lines
1,023 B
JavaScript
35 lines
1,023 B
JavaScript
/**
|
|
* Text Encoding Brute Force tests.
|
|
*
|
|
* @author Cynser
|
|
*
|
|
* @copyright Crown Copyright 2018
|
|
* @license Apache-2.0
|
|
*/
|
|
import TestRegister from "../../TestRegister";
|
|
|
|
TestRegister.addTests([
|
|
{
|
|
name: "Text Encoding Brute Force - Encode",
|
|
input: "Булкі праз ляніва сабаку.",
|
|
expectedMatch: /Windows-1251 Cyrillic \(1251\).{1,10}Булкі праз ляніва сабаку\./,
|
|
recipeConfig: [
|
|
{
|
|
op: "Text Encoding Brute Force",
|
|
args: ["Encode"],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "Text Encoding Brute Force - Decode",
|
|
input: "Áóëê³ ïðàç ëÿí³âà ñàáàêó.",
|
|
expectedMatch: /Windows-1251 Cyrillic \(1251\).{1,10}Булкі праз ляніва сабаку\./,
|
|
recipeConfig: [
|
|
{
|
|
op: "Text Encoding Brute Force",
|
|
args: ["Decode"],
|
|
},
|
|
],
|
|
}
|
|
]);
|
|
|