Amend Key algo and NewMsg

Use []byte for uid; change NewMsg to simple string concatenation