replace authentication validation and encryption keys