Signing Digital Documents in Hostile Environments