Quantcast
Channel: How do I securely wipe a file / directory in Python? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by CertifcateJunky for How do I securely wipe a file / directory in...

def secure_delete(path, random_fill=True, null_fill=True, passes=3):""" securely delete a file by passing it through both random and null filling""" files = os.listdir(path) for i, f in...

View Article



Answer by Anurag Uniyal for How do I securely wipe a file / directory in Python?

There is no such function in standard library and a naive implementation which overwrites each byte of file with a random byte is not too difficult to do e.g. f = open(path, "wb")...

View Article

How do I securely wipe a file / directory in Python?

Is there any module which provides somehow basic "secure" deletion, sth. like the Linux utility "wipe", e.g.import securitystuffsecuritystuff.wipe( filename )I need to protect company source code which...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images