mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-06 04:04:50 +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
|
// For most use cases, use the Encrypt and Decrypt functions with
|
||||||
// X25519Recipient and X25519Identity. If passphrase encryption is required, use
|
// X25519Recipient and X25519Identity. If passphrase encryption is required, use
|
||||||
// ScryptRecipient and ScryptIdentity. For compatibility with existing SSH keys
|
// 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,
|
// 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
|
package age
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -15,7 +15,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleEncrypt() {
|
func ExampleEncrypt() {
|
||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
"filippo.io/age/internal/format"
|
"filippo.io/age/internal/format"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
"filippo.io/age/internal/format"
|
"filippo.io/age/internal/format"
|
||||||
"golang.org/x/crypto/chacha20poly1305"
|
"golang.org/x/crypto/chacha20poly1305"
|
||||||
"golang.org/x/crypto/curve25519"
|
"golang.org/x/crypto/curve25519"
|
||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"filippo.io/age/internal/agessh"
|
"filippo.io/age/agessh"
|
||||||
"filippo.io/age/internal/format"
|
"filippo.io/age/internal/format"
|
||||||
"golang.org/x/crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
"golang.org/x/crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -16,8 +16,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
"filippo.io/age/internal/armor"
|
"filippo.io/age/armor"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleNewWriter() {
|
func ExampleNewWriter() {
|
||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
"golang.org/x/crypto/ssh/terminal"
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
"filippo.io/age/internal/armor"
|
"filippo.io/age/armor"
|
||||||
"golang.org/x/crypto/ssh/terminal"
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestVectors(t *testing.T) {
|
func TestVectors(t *testing.T) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
"golang.org/x/crypto/ssh/terminal"
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"filippo.io/age/internal/age"
|
"filippo.io/age/age"
|
||||||
"filippo.io/age/internal/agessh"
|
"filippo.io/age/agessh"
|
||||||
"golang.org/x/crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user