src/crypto/cipher/des.js
function DES(key) {
  this.key = key;

  this.encrypt = function(block, padding) {
    const keys = des_createKeys(this.key);
    return des(keys, block, true, 0, null, padding);
  };

  this.decrypt = function(block, padding) {
    const keys = des_createKeys(this.key);
    return des(keys, block, false, 0, null, padding);
  };
}
function DES(key) {
  this.key = key;

  this.encrypt = function(block, padding) {
    const keys = des_createKeys(this.key);
    return des(keys, block, true, 0, null, padding);
  };

  this.decrypt = function(block, padding) {
    const keys = des_createKeys(this.key);
    return des(keys, block, false, 0, null, padding);
  };
}
function DES ( key ) { this . key = key ; this . encrypt = function ( block , padding ) { const keys = des_createKeys ( this . key ) ; return des ( keys , block , true , 0 , null , padding ) ; } ; this . decrypt = function ( block , padding ) { const keys = des_createKeys ( this . key ) ; return des ( keys , block , false , 0 , null , padding ) ; } ; }
This is "original" DES
This is original DES