Added cross platform securedPrint function