1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-10 12:33:46 +00:00

crypt: added cryptdecode command - #1129

This commit is contained in:
ishuah
2017-09-20 14:40:07 +03:00
committed by Nick Craig-Wood
parent c9e2739500
commit 7195e44dce
3 changed files with 65 additions and 0 deletions

View File

@@ -403,6 +403,11 @@ func (f *Fs) UnWrap() fs.Fs {
return f.Fs
}
// DecryptFileName returns a decrypted file name
func (f *Fs) DecryptFileName(encryptedFileName string) (string, error) {
return f.cipher.DecryptFileName(encryptedFileName)
}
// ComputeHash takes the nonce from o, and encrypts the contents of
// src with it, and calcuates the hash given by HashType on the fly
//