javascript/transformers/EDF.js
/**
    * Removes the 80 bytes of user data and optionally replaces them by a given pseudonym
    */
Removes the 80 bytes of user data and optionally replaces them by a given pseudonym
Removes the 80 bytes of user data and optionally replaces them by a given pseudonym
pseudonymize() {
      console.log('pseudonymize', this.get('name'));
      let buffer = this.get('content');
      let pseudonym = this.get('pseudonym');
      for (var i = 0; i < 80; i++) {
         buffer[i + 8] = (pseudonym[i] || ' ').charCodeAt();
      }
   }
pseudonymize ( ) { console . log ( 'pseudonymize' , this . get ( 'name' ) ) ; let buffer = this . get ( 'content' ) ; let pseudonym = this . get ( 'pseudonym' ) ; for ( var i = 0 ; i < 80 ; i ++ ) { buffer [ i + 8 ] = ( pseudonym [ i ] || ' ' ) . charCodeAt ( ) ; } }
Removes the 80 bytes of user data and optionally replaces them by a given pseudonym
Removes the 80 bytes of user data and optionally replaces them by a given pseudonym