The first one is a dash, not a hyphen. People are lazy and use the same character when typing. In reality there are 3 different characters: тире, знак минуса и дефис.
Here's a great article about...