Attempt to clear the password and encoded password from memory

This commit is contained in:
HikariKnight 2023-04-11 09:07:24 +02:00
parent e412a2ffbf
commit 935adeb140

View file

@ -57,6 +57,8 @@ func Elevate(password string) {
errorcheck.ErrorCheck(err, "\nFailed at typing to STDIN")
// Clear the password
pw = nil
password = ""
stdin.Close()
// Wait for the sudo prompt (If the correct password was given, it will not stay behind)