Moves key and secret codes to configuration file