mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-05 03:43:57 +00:00
all: switch labels and intro to age-encryption.org/v1
This commit is contained in:
committed by
Filippo Valsorda
parent
c434eee6e8
commit
158b2ce899
@@ -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.
|
||||
|
||||
|
||||
@@ -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 ]")
|
||||
}
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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("---")
|
||||
|
||||
Reference in New Issue
Block a user