mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-04 19:33:55 +00:00
age,agessh,armor: unleash public API 💥🦑
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
// For most use cases, use the Encrypt and Decrypt functions with
|
||||
// X25519Recipient and X25519Identity. If passphrase encryption is required, use
|
||||
// ScryptRecipient and ScryptIdentity. For compatibility with existing SSH keys
|
||||
// use the filippo.io/age/internal/agessh package.
|
||||
// use the filippo.io/age/agessh package.
|
||||
//
|
||||
// Age encrypted files are binary and not malleable, for encoding them as text,
|
||||
// use the filippo.io/age/internal/armor package.
|
||||
// use the filippo.io/age/armor package.
|
||||
package age
|
||||
|
||||
import (
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"log"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/age"
|
||||
)
|
||||
|
||||
func ExampleEncrypt() {
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"crypto/rand"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/age"
|
||||
"filippo.io/age/internal/format"
|
||||
)
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
"io"
|
||||
"math/big"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/age"
|
||||
"filippo.io/age/internal/format"
|
||||
"golang.org/x/crypto/chacha20poly1305"
|
||||
"golang.org/x/crypto/curve25519"
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"crypto/rsa"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age/internal/agessh"
|
||||
"filippo.io/age/agessh"
|
||||
"filippo.io/age/internal/format"
|
||||
"golang.org/x/crypto/ssh"
|
||||
)
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"crypto/rsa"
|
||||
"fmt"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/age"
|
||||
"golang.org/x/crypto/ssh"
|
||||
)
|
||||
|
||||
@@ -16,8 +16,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/internal/armor"
|
||||
"filippo.io/age/age"
|
||||
"filippo.io/age/armor"
|
||||
)
|
||||
|
||||
func ExampleNewWriter() {
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/age"
|
||||
"golang.org/x/crypto/ssh/terminal"
|
||||
)
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/internal/armor"
|
||||
"filippo.io/age/age"
|
||||
"filippo.io/age/armor"
|
||||
"golang.org/x/crypto/ssh/terminal"
|
||||
)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/age"
|
||||
)
|
||||
|
||||
func TestVectors(t *testing.T) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/age"
|
||||
"golang.org/x/crypto/ssh/terminal"
|
||||
)
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"filippo.io/age/internal/age"
|
||||
"filippo.io/age/internal/agessh"
|
||||
"filippo.io/age/age"
|
||||
"filippo.io/age/agessh"
|
||||
"golang.org/x/crypto/ssh"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user