mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 18:16:53 -04:00
Starting to rejig it
This commit is contained in:
parent
3fa3c31e31
commit
9f3b185f77
40 changed files with 131 additions and 82 deletions
|
@ -8,6 +8,7 @@ import Operation from "../Operation.mjs";
|
|||
import Utils from "../Utils.mjs";
|
||||
import OperationError from "../errors/OperationError.mjs";
|
||||
import {ALPHABET_OPTIONS} from "../lib/Base58.mjs";
|
||||
import magicObject from "../lib/MagicObject.mjs";
|
||||
|
||||
/**
|
||||
* From Base58 operation
|
||||
|
@ -38,7 +39,7 @@ class FromBase58 extends Operation {
|
|||
"value": true
|
||||
}
|
||||
];
|
||||
this.patterns = [
|
||||
this.checks = new magicObject([
|
||||
{
|
||||
match: "^[1-9A-HJ-NP-Za-km-z]{20,}$",
|
||||
flags: "",
|
||||
|
@ -49,7 +50,7 @@ class FromBase58 extends Operation {
|
|||
flags: "",
|
||||
args: ["rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz", false]
|
||||
},
|
||||
];
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue