add new configuration options, update example, add DeriveKey func, rename random file

This commit is contained in:
vysion 2022-03-29 18:48:03 -07:00
parent c6dd4606e7
commit dec70f1466
4 changed files with 8 additions and 1 deletions

View File

@ -12,6 +12,12 @@ type Configuration struct {
ForceZeroWidth bool
StatsCollectionInterval int
Logging loggingConfig
Encryption encryptionConfig
}
type encryptionConfig struct {
Nonce string
EncryptionKeyLength int
}
type loggingConfig struct {

View File

@ -2,7 +2,7 @@ package constants
const (
// Version is the current version of the server.
Version = "1.3.41"
Version = "1.4.0"
// ExtensionLengthLimit means that file extensions cannot have more characters than the number specified.
// file.png has an extension of 4.

1
encryption/derive_key.go Normal file
View File

@ -0,0 +1 @@
package encryption