pull key from registry, todo encrypt key