mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
crypt: get rid of the unused Cipher interface as it obfuscated the code
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user