getHmac method takes login and returns obj for db.put