Secure key storage and key generation based on group name and random salt