There might be some code at browser which would be decrypting the password before sending it.
You need to get that code.
Capture the value and pass it in that code before sending it.
It might be written in javascript, else check what it is doing and replicate same in BeanShell.