When I type this into the terminal I get the output right away. I would like to make this into a variable and use it on my code
python -c 'import crypt; print crypt.crypt("MyPassword", "$6$LsCK1WmouFiO9AT/$")'
I have tried something like this
Password = python -c 'import crypt; print crypt.crypt("MyPassword", "$6$LsCK1WmouFiO9AT/$")'