What about:

    this.encrypt = new CipherTransformFactory(encrypt, (fileId && fileId.length) ? fileId : '', password);

A bit more concise :)