For Cipher you need to max Int, Str, Dex.
I wouldn't recomend melee. First of all if you went to glasscannon, then it's easy to die there. Second of all proper Cipher will often cast something. Aoe, debuffs, CC. So there is not much reason to put self in melee danger and move all the time to avoid being targeted so you can cast safely.
I would leave melee to rogue which can kill things before geting killed and barbs which can become immune plus are more effective in packs.