Added a memwipe() function to safely overwrite sensitive memory