Documentation
¶
Overview ¶
Package security : 暗号関連処理
Index ¶
- Constants
- func GenPrivateKey(bits int, keypass string) (string, error)
- func GetRawKeyPem(p, keypass string) string
- func GetSSHPublicKey(key string) (string, error)
- func MakeWebAPICert(host, keypass, ips string) ([]byte, []byte, error)
- func PasswordHash(pw string) string
- func PasswordVerify(hash, pw string) bool
Constants ¶
View Source
const CertTerm = 1
CertTerm : 自己署名の期限
View Source
const KeyPass = "TWSNMPba98be2110e9653f249aa2b38706cb02YMI"
KeyPass : 秘密鍵のパスワード
Variables ¶
This section is empty.
Functions ¶
func GenPrivateKey ¶
GenPrivateKey : Generate RSA Key
func GetSSHPublicKey ¶
GetSSHPublicKey : SSHの公開鍵をOpenSSH形式で取得する
func PasswordVerify ¶
PasswordVerify : パスワードがハッシュにマッチするかどうかを調べる
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.