export a armor key func
This commit is contained in:
parent
0571cd9aa7
commit
3a79b43550
1 changed files with 5 additions and 0 deletions
5
armor.go
5
armor.go
|
|
@ -14,6 +14,11 @@ const (
|
|||
pgpPrivateBlockType string = "PGP PRIVATE KEY BLOCK"
|
||||
)
|
||||
|
||||
// ArmorKey make bytes input key to armor format
|
||||
func ArmorKey(input []byte) (string, error) {
|
||||
return ArmorWithType(input, pgpPublicBlockType)
|
||||
}
|
||||
|
||||
// ArmorWithType make bytes input to armor format
|
||||
func ArmorWithType(input []byte, armorType string) (string, error) {
|
||||
var b bytes.Buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue