ucasnauth

command module
v0.0.0-...-5f83937 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 19 Imported by: 0

README

ucasnauth

University of Chinese Academy of Sciences campus Network AUTHentication.

Introduction

A simple tool to help you login the campus network of UCAS (University of Chinese Academy of Sciences).
Your username and password will be saved to your machine, with AES encryption.
I won't collect your information or send it to anywhere else.

Main Features

Easy to use

Just execute the program, and you will login the campus network of UCAS. See Usage section for details.

Remember your account information

Your username and password will be saved to your machine. You don't need to input them every time.

Encrypt your account information

Your account information is encrypted with AES. The key depends on your machine fingerprint. Don't worry about data files being stolen. Other people will get no knowledge from them.

Installation

Before the installation, you must install go 1.12 or newer version of the Go programming language.
You can download it from its official website.


Get this tool with

go get -u github.com/donyori/ucasnauth

A executable file will be created under your $GOBIN (if you set this environment variable) or $GOPATH/bin.
It's recommended to move the executable file to a separate directory, because some data files will be saved under this directory. (See Created Files section for details.)

Usage

For the first time or when you want to login another account:

ucasnauth username password

It will login with the specified username and password.
If login succeeds, the username and password will be saved to your machine (previous data will be replaced).


Then, if you want to login with previous information, just execute the program with no arguments:

ucasnauth

To logout:

ucasnauth logout

To delete saved account information:

ucasnauth delete

Created Files

This tool will create some files to save the data, including username, password, and data used for AES encryption.
These files are under the directory: $HOME/.ucasnauth (%USERPROFILE%\.ucasnauth for Windows)

Uninstallation

To uninstall this tool, remove the executable file and its data files as shown in Created Files. If you want to remove the source codes as well, remove $GOPATH/src/github.com/donyori/ucasnauth and all its contents.

License

The MIT License (MIT) - donyori. Please have a look at the LICENSE for more details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL