Documentation ¶
Index ¶
Constants ¶
View Source
const ( BlockSize = 512 // bytes MaxLenghtCategory = 40 MaxLenghtLabel = 200 CategoryCredential = "credential" )
Variables ¶
This section is empty.
Functions ¶
func PadEncrypted ¶
PadEncrypted fills the encrypted (with age) header up to BlockSize with 0x20 characters
Types ¶
type Header ¶
type Header struct { Version string Category string Label string // Path of the privage file containing the header Path string // Error when unpadding or decrypting the header of the file Err error }
A Header contains the filename and a category (the metadata) of a file.
This metadata is serialized and encrypted at the start of a privage file.
Click to show internal directories.
Click to hide internal directories.