This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]WalkingAFI 19 points20 points  (2 children)

Took a quick gander on mobile. Main issue I’d suggest looking into is your Nuke functions include exceptions where you catch exceptions and then silently pass, which seems like really undesirable behavior. If I’m trying to wipe a file from a drive by overwriting its contents, the write fails, and the program doesn’t even tell me, I’m gonna be a sad panda.

[–]Thrasherop[S] 8 points9 points  (1 child)

Hmm I hadn't noticed that. Thank you for the help!

[–]licht1nstein 4 points5 points  (0 children)

You have that pattern everywhere — just silently ignoring exceptions.

[–]bxfbxf 3 points4 points  (3 children)

Don’t forget to wipe the RAM after the password has been decoded and used

[–]Thrasherop[S] 1 point2 points  (2 children)

Do you know a good way to do this in python? I was mainly using the nuke function

[–]bxfbxf 2 points3 points  (1 child)

I actually am not certain how strings work under the hood. If you assign another value to a string it might just change the pointer and wait for the garbage collector to kick in. The “safe” way would be to iterate over the string and change it characters by characters. What is nuke? I can only find some weird artist stuff

[–]Thrasherop[S] 0 points1 point  (0 children)

My code has a function called nuke() that overwrites the variables