mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-25 01:06:16 -04:00
add Buffer translation to Dish. Cannot work in SyncDish as typeEnums are static. Seeing as they will never be hit in the broswer, shouldnt be an issue
This commit is contained in:
parent
fbcb626fd0
commit
223e2e0b73
4 changed files with 48 additions and 8 deletions
|
@ -158,7 +158,7 @@ Full hash: $2a$10$ODeP1.6fMsb.ENk2ngPUCO7qTGVPyHA9TqDVcyupyed8FjsiF65L6`;
|
|||
|
||||
it("bit shift left", () => {
|
||||
const result = chef.bitShiftLeft("Keep Your Eyes Peeled");
|
||||
assert.strictEqual(result.toString(), ".ÊÊà@²Þêä@.òÊæ@ ÊÊØÊÈ");
|
||||
assert.strictEqual(result.toString(), "ÊÊà@²Þêä@òÊæ@ ÊÊØÊÈ");
|
||||
}),
|
||||
|
||||
it("bitShiftRight: number and option", () => {
|
||||
|
@ -852,7 +852,7 @@ FROM STATS;`;
|
|||
}),
|
||||
|
||||
it("strings", () => {
|
||||
const result = chef.strings("smothering ampersand abreast");
|
||||
const result = chef.strings("smothering ampersand abreast", {displayTotal: true});
|
||||
const expected = `Total found: 1
|
||||
|
||||
smothering ampersand abreast
|
||||
|
@ -909,7 +909,7 @@ smothering ampersand abreast
|
|||
}),
|
||||
|
||||
it("to unix timestamp", () => {
|
||||
assert.strictEqual(chef.toUNIXTimestamp("04/01/2001").toString(), "986083200 (Sun 1 April 2001 00:00:00 UTC)");
|
||||
assert.strictEqual(chef.toUNIXTimestamp("04-01-2001").toString(), "986083200 (Sun 1 April 2001 00:00:00 UTC)");
|
||||
}),
|
||||
|
||||
it("Translate DateTime format", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue