MCPcopy
hub / github.com/nirui/sshwifty / buildCipherKey

Method buildCipherKey

application/controller/socket.go:288–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286}
287
288func (s socket) buildCipherKey() [16]byte {
289 key := [16]byte{}
290 now := strconv.FormatInt(time.Now().Unix()/100, 10)
291
292 copy(key[:], getSocketAuthKey(now, s.privateKey()))
293
294 return key
295}
296
297func (s socket) Get(
298 w http.ResponseWriter, r *http.Request, l log.Logger) error {

Callers 1

GetMethod · 0.95

Calls 2

privateKeyMethod · 0.95
getSocketAuthKeyFunction · 0.70

Tested by

no test coverage detected