mac & basic auth key generation now same