mirror of
https://github.com/gchq/CyberChef
synced 2024-12-29 14:03:10 +00:00
Tidied up CBOR operations
This commit is contained in:
parent
88e3c2ccb2
commit
ff88d30d2f
4 changed files with 8 additions and 11 deletions
|
@ -19,13 +19,12 @@ class CBORDecode extends Operation {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.name = "CBOR Decode";
|
this.name = "CBOR Decode";
|
||||||
this.module = "Default";
|
this.module = "Serialise";
|
||||||
this.description = "Decode Concise Binary Object Representation (CBOR) data format (RFC7049) to JSON.";
|
this.description = "Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON. Like JSON it allows the transmission of data objects that contain name–value pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF RFC 8949.";
|
||||||
this.infoURL = "https://cbor.io";
|
this.infoURL = "https://wikipedia.org/wiki/CBOR";
|
||||||
this.inputType = "ArrayBuffer";
|
this.inputType = "ArrayBuffer";
|
||||||
this.outputType = "JSON";
|
this.outputType = "JSON";
|
||||||
this.args = [
|
this.args = [];
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,9 +19,9 @@ class CBOREncode extends Operation {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.name = "CBOR Encode";
|
this.name = "CBOR Encode";
|
||||||
this.module = "Default";
|
this.module = "Serialise";
|
||||||
this.description = "2";
|
this.description = "Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON. Like JSON it allows the transmission of data objects that contain name–value pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF RFC 8949.";
|
||||||
this.infoURL = "https://cbor.io";
|
this.infoURL = "https://wikipedia.org/wiki/CBOR";
|
||||||
this.inputType = "JSON";
|
this.inputType = "JSON";
|
||||||
this.outputType = "ArrayBuffer";
|
this.outputType = "ArrayBuffer";
|
||||||
this.args = [];
|
this.args = [];
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* From Hex Tests.
|
* CBOR Decode Tests
|
||||||
*
|
*
|
||||||
* @author Danh4 [dan.h4@ncsc.gov.uk]
|
* @author Danh4 [dan.h4@ncsc.gov.uk]
|
||||||
*
|
|
||||||
* @copyright Crown Copyright 2019
|
* @copyright Crown Copyright 2019
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
* CBOR Encode Tests.
|
* CBOR Encode Tests.
|
||||||
*
|
*
|
||||||
* @author Danh4 [dan.h4@ncsc.gov.uk]
|
* @author Danh4 [dan.h4@ncsc.gov.uk]
|
||||||
*
|
|
||||||
* @copyright Crown Copyright 2019
|
* @copyright Crown Copyright 2019
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue