(keyGen *KeyGenerator, folderID, password string)
| 605 | } |
| 606 | |
| 607 | func 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 |