File: main.go

package info (click to toggle)
golang-github-charmbracelet-x 0.0~git20240809.9ab0ca0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,004 kB
  • sloc: sh: 55; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main

import (
	"fmt"

	"github.com/charmbracelet/x/sshkey"
)

func main() {
	// password is "asd".
	signer, err := sshkey.Open("./key")
	if err != nil {
		panic(err)
	}

	if signer != nil {
		fmt.Println("Key opened!")
	}
}