Definitely not magnesium. Magnesium dust or strips are highly flammable - only takes a strike from a steel knife to ignite it. Running a steel razor over magnesium might not produce a desired result.