code: function TripleDES(key) {
    this.key = [];
  
    for (let i = 0; i < 3; i++) {
      this.key.push(new Uint8Array(key.subarray(i * 8, (i * 8) + 8)));
    }
  
    this.encrypt = function(block) {
      return des(
        des_createKeys(this.key[2]),
        des(
          des_createKeys(this.key[1]),
          des(
            des_createKeys(this.key[0]),
            block, true, 0, null, null
          ),
          false, 0, null, null
        ), true, 0, null, null
      );
    };
  }
docs: added by Recurity Labs