OP said exactly "I've twice encrypted my file with password like `cd tmp`"
Not sure how you get "irrevocably bricked your system" from "encrypted my file", but you do you, I guess
You should also let the OP do the OP. They said they made a mistake. Simply, without complaining, and they do something else now. It's that simple