format file tag

This commit is contained in:
tickstep 2021-11-11 23:30:27 +08:00
parent a28ed463e7
commit 3d22751c7a
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ func EncryptString(text string) string {
return ""
}
d := []byte(text)
key := []byte(ids.GetUniqueId("cloudpan189", 16))
key := []byte(ids.GetUniqueId("aliyunpan", 16))
r, e := crypto.EncryptAES(d, key)
if e != nil {
return text
@ -98,7 +98,7 @@ func DecryptString(text string) string {
// use the machine unique id as the key
// but in some OS, this key will be changed if you reinstall the OS
key := []byte(ids.GetUniqueId("cloudpan189", 16))
key := []byte(ids.GetUniqueId("aliyunpan", 16))
r, e := crypto.DecryptAES(d, key)
if e != nil {
return text

View File

@ -67,7 +67,7 @@ const (
// DefaultPrintFormat 默认的下载进度输出格式
DefaultPrintFormat = "\r[%s] ↓ %s/%s %s/s in %s, left %s ............"
//DownloadSuffix 文件下载后缀
DownloadSuffix = ".cloudpan189-downloading"
DownloadSuffix = ".aliyunpan-downloading"
//StrDownloadInitError 初始化下载发生错误
StrDownloadInitError = "初始化下载发生错误"
// StrDownloadFailed 下载文件失败