mirror of
https://github.com/gchq/CyberChef
synced 2025-01-08 10:38:46 +00:00
Updated description
This commit is contained in:
parent
3950dba2c5
commit
bb8c305fc8
2 changed files with 8 additions and 4 deletions
|
@ -23,7 +23,9 @@ class BLAKE2b extends Operation {
|
|||
|
||||
this.name = "BLAKE2b";
|
||||
this.module = "Hashing";
|
||||
this.description = "Performs BLAKE2b hashing on the input. Returns the output HEX encoded.";
|
||||
this.description = `Performs BLAKE2b hashing on the input.
|
||||
<br><br> BLAKE2b is a flavour of the BLAKE cryptographic hash function that is optimized for 64-bit platforms and produces digests of any size between 1 and 64 bytes.
|
||||
<br><br> Supports the use of an optional key.`;
|
||||
this.infoURL = "https://wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE2b_algorithm";
|
||||
this.inputType = "string";
|
||||
this.outputType = "string";
|
||||
|
@ -56,7 +58,7 @@ class BLAKE2b extends Operation {
|
|||
if (key.length === 0){
|
||||
key = null;
|
||||
} else if (key.length > 64){
|
||||
throw new OperationError(["Key cannot be greater than 64 bytes", "It is currently " + key.length +" bytes."].join("\n"));
|
||||
throw new OperationError(["Key cannot be greater than 64 bytes", "It is currently " + key.length + " bytes."].join("\n"));
|
||||
}
|
||||
switch (outFormat) {
|
||||
case "Hex":
|
||||
|
|
|
@ -22,7 +22,9 @@ class BLAKE2s extends Operation {
|
|||
|
||||
this.name = "BLAKE2s";
|
||||
this.module = "Hashing";
|
||||
this.description = "Performs BLAKE2s hashing on the input. Returns the output HEX encoded.";
|
||||
this.description = `Performs BLAKE2s hashing on the input.
|
||||
<br><br> BLAKE2s is a flavour of the BLAKE cryptographic hash function that is optimized for 8 to 32-bit platforms and produces digests of any size between 1 and 32 bytes.
|
||||
<br><br> Supports the use of an optional key.`;
|
||||
this.infoURL = "https://wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE2";
|
||||
this.inputType = "string";
|
||||
this.outputType = "string";
|
||||
|
@ -56,7 +58,7 @@ class BLAKE2s extends Operation {
|
|||
if (key.length === 0){
|
||||
key = null;
|
||||
} else if (key.length > 32){
|
||||
throw new OperationError(["Key cannot be greater than 32 bytes", "It is currently " + key.length +" bytes."].join("\n"));
|
||||
throw new OperationError(["Key cannot be greater than 32 bytes", "It is currently " + key.length + " bytes."].join("\n"));
|
||||
}
|
||||
switch (outFormat) {
|
||||
case "Hex":
|
||||
|
|
Loading…
Reference in a new issue