Question: ```
@ECHO OFF

:Start
      SET /P Enter user name:
      SET /P Enter Password:

      SET /P Enter age:
      SET /p Enter Passeword:

```

For the given above .bat file . How do I pass arguments using PYTHON

I want to write Python automation script which call the batch file and pass the required argument in the batch file

Answer: 
Its important to hide session ID for MITMA but of accessibility you need it to let web sites know who you are and what was your last activity. The technique which is widely used is limited time session ID
What would be the benefit of encrypting or masking it? Assuming there were an uncomplicated and non-timewasting way to do this, an attacker only need copy the encrypted form of the token and feed it to your application and your application will dutifully decrypt it, regardless of the source. Ditto for masking it: whatever masking you perform before transporting it, means that some component on the server side will need to unmask it to make it usable. So really, you're not going to achieve anything in the direction you're looking at. 

The major viable threat here is a session-replay attack, which can easily be mitigated by ensuring that 

1. Your sessions don't live for too long
2. You implement a single active session policy, where any given user id cannot have more than one active session - meaning that even if a session ID were compromised, no new session can be started with the stolen token.

If you're that concerned with the handling of session tokens, you should read through [OWASP's session management article](https://www.owasp.org/index.php/Session_Management) that will give you better practice in protecting your sessions; what you're looking at now is just distracting