Skip to content

Commit

Permalink
all: switch labels and intro to age-encryption.org/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
FiloSottile committed Dec 27, 2019
1 parent c434eee commit 158b2ce
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
age is meant to be a simple, secure and modern encryption tool with small explicit keys, no config options, and UNIX-style composability. The spec is at [age-tool.com/spec](https://age-tool.com/spec).
age is meant to be a simple, secure and modern encryption tool with small explicit keys, no config options, and UNIX-style composability. The spec is at [age-encryption.org/v1](https://age-encryption.org/v1).

This implementation is in progress, and things will keep moving around, so it's not yet a good time to contribute, and it's definitely not a good time to rely on it.

Expand Down
7 changes: 2 additions & 5 deletions cmd/age/age.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ func decrypt(keys []string, in io.Reader, out io.Writer) {

func logFatalf(format string, v ...interface{}) {
_log.Printf(format, v...)
_log.Printf("\n")
_log.Printf(" *** Did age not do what you expected? ***")
_log.Printf(" *** Could an error be more useful? ***")
_log.Printf(" *** -> https://age-tool.com/report <- ***")
_log.Fatalf("\n")
_log.Fatalf("[ Did age not do what you expected? Could an error be more useful?" +
" Tell us: https://filippo.io/age/report ]")
}
2 changes: 1 addition & 1 deletion internal/age/age.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd

// Package age implements age-tool.com file encryption.
// Package age implements file encryption according to age-encryption.org/v1.
package age

import (
Expand Down
4 changes: 2 additions & 2 deletions internal/age/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func SSHFingerprint(pk ssh.PublicKey) string {
return format.EncodeToString(hh[:4])
}

const oaepLabel = "age-tool.com ssh-rsa"
const oaepLabel = "age-encryption.org/v1/ssh-rsa"

type SSHRSARecipient struct {
sshKey ssh.PublicKey
Expand Down Expand Up @@ -200,7 +200,7 @@ func ed25519PublicKeyToCurve25519(pk ed25519.PublicKey) []byte {
return out
}

const ed25519Label = "age-tool.com ssh-ed25519"
const ed25519Label = "age-encryption.org/v1/ssh-ed25519"

func (r *SSHEd25519Recipient) Wrap(fileKey []byte) (*format.Recipient, error) {
ephemeral := make([]byte, curve25519.ScalarSize)
Expand Down
2 changes: 1 addition & 1 deletion internal/age/x25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"golang.org/x/crypto/hkdf"
)

const x25519Label = "age-tool.com X25519"
const x25519Label = "age-encryption.org/v1/X25519"

type X25519Recipient struct {
theirPublicKey []byte
Expand Down
2 changes: 1 addition & 1 deletion internal/format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var EncodeToString = b64.EncodeToString
const columnsPerLine = 64
const bytesPerLine = columnsPerLine / 4 * 3

const intro = "This is a file encrypted with age-tool.com, version 1\n"
const intro = "age-encryption.org/v1\n"

var recipientPrefix = []byte("->")
var footerPrefix = []byte("---")
Expand Down

0 comments on commit 158b2ce

Please sign in to comment.