mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 16:26:16 -04:00
Fixed lint issues
This commit is contained in:
parent
215e7a5f5d
commit
c378bcb00b
2 changed files with 5 additions and 5 deletions
|
@ -33,11 +33,11 @@ class DecodeCitrixCTX1 extends Operation {
|
|||
* @returns {string}
|
||||
*/
|
||||
run(input, args) {
|
||||
if (input.length % 4 != 0) {
|
||||
if (input.length % 4 !== 0) {
|
||||
return "";
|
||||
}
|
||||
let revinput = input.reverse();
|
||||
let result = [];
|
||||
const revinput = input.reverse();
|
||||
const result = [];
|
||||
let temp = 0;
|
||||
for (let i = 0; i < revinput.length; i+=2) {
|
||||
if (i+2 >= revinput.length) {
|
||||
|
|
|
@ -33,8 +33,8 @@ class EncodeCitrixCTX1 extends Operation {
|
|||
* @returns {byteArray}
|
||||
*/
|
||||
run(input, args) {
|
||||
let utf16pass = Buffer.from(cptable.utils.encode(1200, input));
|
||||
let result = [];
|
||||
const utf16pass = Buffer.from(cptable.utils.encode(1200, input));
|
||||
const result = [];
|
||||
let temp = 0;
|
||||
for (let i = 0; i < utf16pass.length; i++) {
|
||||
temp = utf16pass[i] ^ 0xa5 ^ temp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue