User-differentiated hierarchical key management for the bring-your-own-device environments