void obfuscatePasswd(String passwd, byte[] obfuscated) {
    for (int i = 0; i < 8; i++) {
      if (i < passwd.length())
        obfuscated[i] = (byte)passwd.charAt(i);
      else
        obfuscated[i] = 0;
    }
    DesCipher des = new DesCipher(obfuscationKey);
    des.encrypt(obfuscated, 0, obfuscated, 0);
  }