security

package
v1.72.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package security : 暗号関連処理

Index

Constants

View Source
const CertTerm = 1

CertTerm : 自己署名の期限

View Source
const KeyPass = "TWSNMPba98be2110e9653f249aa2b38706cb02YMI"

KeyPass : 秘密鍵のパスワード

Variables

This section is empty.

Functions

func GenPrivateKey

func GenPrivateKey(bits int) (string, error)

GenPrivateKey : Generate RSA Key

func GetRawKeyPem

func GetRawKeyPem(p, keypass string) string

GetRawKeyPem : 暗号化を解除した秘密鍵のPEMを取得する

func GetSSHPublicKey

func GetSSHPublicKey(key string) (string, error)

GetSSHPublicKey : SSHの公開鍵をOpenSSH形式で取得する

func MakeWebAPICert

func MakeWebAPICert(host, ips string) ([]byte, []byte, error)

func PasswordHash

func PasswordHash(pw string) string

PasswordHash : パスワードハッシュを作る

func PasswordVerify

func PasswordVerify(hash, pw string) bool

PasswordVerify : パスワードがハッシュにマッチするかどうかを調べる

Types

This section is empty.

Jump to

Keyboard shortcuts

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