Documentation ¶
Index ¶
- func B64SHA3_256(msg []byte) []byte
- func Base64Decode(encoded []byte) ([]byte, error)
- func Base64DecodeForJWT(encoded []byte) ([]byte, error)
- func Base64Encode(decoded []byte) []byte
- func Base64EncodeForJWT(decoded []byte) []byte
- func GenKeyPair(alg jwa.KeyAlgorithm) (crypto.Signer, error)
- func JoinBytes(sep byte, things ...[]byte) []byte
- func JoinJWTSegments(segments ...[]byte) []byte
- func OpenUrl(url string) error
- func ReadSKFile(fpath string) (*ecdsa.PrivateKey, error)
- func SKToX509Bytes(sk *ecdsa.PrivateKey) ([]byte, error)
- func WriteSKFile(fpath string, sk *ecdsa.PrivateKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func B64SHA3_256 ¶
func Base64Decode ¶
func Base64DecodeForJWT ¶
func Base64Encode ¶
func Base64EncodeForJWT ¶
func GenKeyPair ¶
func GenKeyPair(alg jwa.KeyAlgorithm) (crypto.Signer, error)
func JoinJWTSegments ¶
func OpenUrl ¶
https://stackoverflow.com/questions/39320371/how-start-web-server-to-open-page-in-browser-in-golang open opens the specified URL in the default browser of the user.
func ReadSKFile ¶
func ReadSKFile(fpath string) (*ecdsa.PrivateKey, error)
func SKToX509Bytes ¶
func SKToX509Bytes(sk *ecdsa.PrivateKey) ([]byte, error)
func WriteSKFile ¶
func WriteSKFile(fpath string, sk *ecdsa.PrivateKey) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.