ffsendRust 编写的命令行文件分享工具

联合创作 · 2023-09-30 00:24

ffsend 是一个文件发送客户端,使用一个简单的命令,通过安全、私密和加密的链接从命令行轻松安全地共享文件和目录。文件使用 Send 服务共享,最大可达 1GB。其他人可以使用此工具或通过他们的网络浏览器下载这些文件。

所有文件始终在客户端上加密,并且永远不会与远程主机共享机密。可以指定可选密码,并强制执行 1(最多 20)次下载或 24 小时的默认文件保存期,以确保资料不会永远在线。

特征

  • 功能齐全且友好的命令行工具
  • 安全上传和下载文件和目录,始终在客户端加密
  • 额外的密码保护、生成和可配置的下载限制
  • 文件和目录归档和提取
  • 内置共享 URL 缩短器和二维码生成器
  • 历史记录跟踪你的文件以便于管理
  • 能够使用您自己的发送主机
  • 检查或删除共享文件
  • 准确的错误报告
  • 流加密和上传/下载,非常低的内存占用

用法

轻松上传和下载:

# Simple upload
$ ffsend upload my-file.txt
https://send.vis.ee/#sample-share-url

# Advanced upload
# - Specify a download limit of 1
# - Specify upload expiry time of 5 minutes
# - Enter a password to encrypt the file
# - Archive the file before uploading
# - Copy the shareable link to your clipboard
# - Open the shareable link in your browser
$ ffsend upload --downloads 1 --expiry-time 5m --password --archive --copy --open my-file.txt
Password: ******
https://send.vis.ee/#sample-share-url

# Upload to your own host
$ ffsend u -h https://example.com/ my-file.txt
https://example.com/#sample-share-url

# Simple download
$ ffsend download https://send.vis.ee/#sample-share-url

检查远程文件:

# Check if a file exists
$ ffsend exists https://send.vis.ee/#sample-share-url
Exists: yes

# Fetch remote file info
$ ffsend info https://send.vis.ee/#sample-share-url
ID:         b087066715
Name:       my-file.txt
Size:       12 KiB
MIME:       text/plain
Downloads:  0 of 10
Expiry:     18h2m (64928s)

其他命令包括:

# View your file history
$ ffsend history
#  LINK                                        EXPIRE
1  https://send.vis.ee/#sample-share-url  23h57m
2  https://send.vis.ee/#other-sample-url  17h38m
3  https://example.com/#sample-share-url       37m30s

# Change the password after uploading
$ ffsend password https://send.vis.ee/#sample-share-url
Password: ******

# Delete a file
$ ffsend delete https://send.vis.ee/#sample-share-url
浏览 9
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报