crypt: get rid of the unused Cipher interface as it obfuscated the code
This commit is contained in:
parent
bbb6f94377
commit
44b1a591a8
4 changed files with 36 additions and 60 deletions
|
@ -60,7 +60,7 @@ use it like this
|
|||
}
|
||||
|
||||
// cryptDecode returns the unencrypted file name
|
||||
func cryptDecode(cipher crypt.Cipher, args []string) error {
|
||||
func cryptDecode(cipher *crypt.Cipher, args []string) error {
|
||||
output := ""
|
||||
|
||||
for _, encryptedFileName := range args {
|
||||
|
@ -78,7 +78,7 @@ func cryptDecode(cipher crypt.Cipher, args []string) error {
|
|||
}
|
||||
|
||||
// cryptEncode returns the encrypted file name
|
||||
func cryptEncode(cipher crypt.Cipher, args []string) error {
|
||||
func cryptEncode(cipher *crypt.Cipher, args []string) error {
|
||||
output := ""
|
||||
|
||||
for _, fileName := range args {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue