MCPcopy
hub / github.com/syncthing/syncthing / PasswordToken

Function PasswordToken

lib/protocol/encryption.go:607–609  ·  view source on GitHub ↗
(keyGen *KeyGenerator, folderID, password string)

Source from the content-addressed store, hash-verified

605}
606
607func PasswordToken(keyGen *KeyGenerator, folderID, password string) []byte {
608 return encryptDeterministic(knownBytes(folderID), keyGen.KeyFromPassword(folderID, password), nil)
609}
610
611// slashify inserts slashes (and file extension) in the string to create an
612// appropriate tree. ABCDEFGH... => A.syncthing-enc/BC/DEFGH... We can use

Callers 4

ccCheckEncryptionMethod · 0.92
TestCcCheckEncryptionFunction · 0.92

Calls 3

encryptDeterministicFunction · 0.85
knownBytesFunction · 0.85
KeyFromPasswordMethod · 0.80

Tested by 2

TestCcCheckEncryptionFunction · 0.74