mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
fix: use UUID v4 by default, for backward compatibility
This commit is contained in:
parent
de5b03f854
commit
2cf3642493
2 changed files with 9 additions and 0 deletions
|
@ -31,6 +31,7 @@ class GenerateUUID extends Operation {
|
|||
value: [
|
||||
"v1", "v3", "v4", "v5", "v6", "v7",
|
||||
]
|
||||
defaultIndex: 2,
|
||||
},
|
||||
{
|
||||
name: "UUID namespace (valid for v3 and v5)",
|
||||
|
|
|
@ -593,6 +593,14 @@ Password: 282760`;
|
|||
assert.strictEqual(result, expected);
|
||||
})),
|
||||
|
||||
it("Generate UUID using defaults", () => {
|
||||
const uuid = chef.generateUUID();
|
||||
assert.ok(uuid);
|
||||
|
||||
const analysis = chef.analyseUUID(uuid).toString();
|
||||
assert.strictEqual(analysis, "UUID version: 4");
|
||||
}),
|
||||
|
||||
it("Gzip, Gunzip", () => {
|
||||
assert.strictEqual(chef.gunzip(chef.gzip("Down To The Wire")).toString(), "Down To The Wire");
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue