cryptEncode returns the encrypted file name
(cipher *crypt.Cipher, args []string)
| 86 | |
| 87 | // cryptEncode returns the encrypted file name |
| 88 | func 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 | } |
no test coverage detected
searching dependent graphs…