Documentation ¶
Overview ¶
canvasctl: Use Canvas LMS from command line
Copyright (C) 2020 Marcus Gelderie This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
canvasctl: Use Canvas LMS from command line
Copyright (C) 2020 Marcus Gelderie This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Index ¶
Constants ¶
View Source
const ( SaltSize int = 32 CRYPTO_VERSION int = 1 )
View Source
const TokenFileBasename = "canvas.conf"
Variables ¶
This section is empty.
Functions ¶
func DecryptTokenForUrl ¶
func EncodeToken ¶
func IsEncrypted ¶
Types ¶
type Ciphertext ¶
func DecodeToken ¶
func DecodeToken(encodedToken string) (Ciphertext, error)
func EncryptToken ¶
func EncryptToken(token, url string, pwd []byte) (Ciphertext, error)
Click to show internal directories.
Click to hide internal directories.