MCPcopy Index your code
hub / github.com/rclone/rclone / cryptEncode

Function cryptEncode

cmd/cryptdecode/cryptdecode.go:88–99  ·  view source on GitHub ↗

cryptEncode returns the encrypted file name

(cipher *crypt.Cipher, args []string)

Source from the content-addressed store, hash-verified

86
87// cryptEncode returns the encrypted file name
88func cryptEncode(cipher *crypt.Cipher, args []string) error {
89 var output strings.Builder
90
91 for _, fileName := range args {
92 encryptedFileName := cipher.EncryptFileName(fileName)
93 output.WriteString(fmt.Sprintln(fileName, "\t", encryptedFileName))
94 }
95
96 fmt.Print(output.String())
97
98 return nil
99}

Callers 1

cryptdecode.goFile · 0.85

Calls 4

WriteStringMethod · 0.65
StringMethod · 0.65
EncryptFileNameMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…