Skip to content

edutko/putty-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

putty-go

Consume puTTY keys (PPK files) in go

Overview

This library supports version 2 and version 3 PPK files, with the following limitations:

  • ssh-ed448 keys cannot be converted to Go public/private keys.
  • Argon2d KDF is not supported.

Examples

Load the public and private keys from a password-protected PPK file

keyPair, err := LoadKeypair("mykey.ppk", []byte("hunter2"))

For unencrypted PPK files, use ppk.NoPassphrase as the passphrase.

Load the public key from a password-protected PPK file without the password (skips MAC verification)

ppk, err := InsecureParseFile("mykey.ppk")
pub, err := putty.UnmarshalPublicKey(ppk.PublicBytes, ppk.Comment)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published