MCPcopy Index your code
hub / github.com/bytesizedhosting/bcd / hashPassword

Method hashPassword

plugins/syncthing/syncthing.go:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (self *SyncthingOpts) hashPassword() string {
38 log.Debugln("Encrypting password", self.Password)
39 encPassword, err := bcrypt.GenerateFromPassword([]byte(self.Password), 0)
40 if err != nil {
41 log.Panicln("Could not encrypt password, HALP")
42 }
43 self.EncPassword = string(encPassword)
44 return self.EncPassword
45}
46
47func (self *Syncthing) Install(opts *SyncthingOpts) error {
48 var err error

Callers 1

InstallMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected