OldPasswordPacket.js 390 B

12345678910111213141516
  1. module.exports = OldPasswordPacket;
  2. function OldPasswordPacket(options) {
  3. options = options || {};
  4. this.scrambleBuff = options.scrambleBuff;
  5. }
  6. OldPasswordPacket.prototype.parse = function(parser) {
  7. this.scrambleBuff = parser.parseNullTerminatedBuffer();
  8. };
  9. OldPasswordPacket.prototype.write = function(writer) {
  10. writer.writeBuffer(this.scrambleBuff);
  11. writer.writeFiller(1);
  12. };