Changed stamp generation, now using message digest