如何加密也可以从 Windows 访问的 USB pendrive/thumdrive/?

SGh*_*sal 7 encryption windows usb-drive usb

如何加密也可以从 Windows 访问的 usb pendrive/thumdrive/?实际上我有 ubuntu(Home) 和 Windows (Office) ,并且必须使用 usb pendrive 来回传输我的数据。所以我需要一个软件,这样我就可以从跨平台操作系统中添加文件,用我的密码解锁。请帮我 。提前致谢 ...

小智 5

对我来说,加密可以从 Windows 和 Ubuntu 访问的拇指驱动器的最简单方法是 Veracrypt。它适用于 Windows 和 Ubuntu。我用它所有的时间。

https://www.veracrypt.fr

如果您需要加密用于存储在云中的容器,请考虑使用 Cryptomator。它适用于 Windows、Ubuntu 和您的手机/平板电脑。

https://cryptomator.org/


sud*_*dus 5

zip -e - 没有额外的硬件或软件 - 易于使用但不是很安全

您可以通过加密zip文件获得简单且安全级别较低的加密,该文件可以包含多个文件或目录树。只要您使用 zip 文件的标准加密,它就可以在 Ubuntu 和 Windows 中运行。

zip在Ubuntu,并且有几个工具在Windows中,这是兼容的(但如果你使用Windows中的某些“增强加密”,Ubuntu的zip将可能无法解密)。

对于当前目录中的所有文件:

zip -e file.zip *
Run Code Online (Sandbox Code Playgroud)

对于当前目录树中的所有文件,“递归进入子目录”:

zip -er file.zip *
Run Code Online (Sandbox Code Playgroud)

解压

unzip file.zip
Run Code Online (Sandbox Code Playgroud)

man zip(在 Ubuntu 中),我们看到-e或者--encrypt是加密存档的选项。

   -e
   --encrypt
          Encrypt  the  contents  of the zip archive using a password which is
          entered on the terminal in response to a prompt (this  will  not  be
          echoed;  if  standard  error  is  not  a  tty, zip will exit with an
          error).  The password prompt is repeated to save the user from  typ?
          ing errors.
Run Code Online (Sandbox Code Playgroud)

但不要使用选项-P--password

   -P password
   --password password
          Use password to encrypt zipfile entries (if any).  THIS IS INSECURE!
          Many multi-user operating systems provide ways for any user  to  see
          the current command line of any other user; even on stand-alone sys?
          tems there is always the threat of over-the-shoulder peeking.  Stor?
          ing the plaintext password as part of a command line in an automated
          script is even  worse.   Whenever  possible,  use  the  non-echoing,
          interactive prompt to enter passwords.  (And where security is truly
          important, use strong encryption such as Pretty Good Privacy instead
          of the relatively weak standard encryption provided by zipfile util?
          ities.)
Run Code Online (Sandbox Code Playgroud)

更高级别的安全性

  • @user68186 在评论中已经提到并链接了专用(已加密)USB随身碟。
  • 具有强大加密功能的系统
    • gpg是 Pretty Good Privacy 的 gnu 实现。它随 Ubuntu 一起提供,因为它用于验证更新是否正确传输,并且您可以使用它来压缩文件,例如包含要传输的文件的tar存档或未加密zip文件。有一个适用于 Windows 的版本,您可以安装。(我gpg几年前安装在 Windows 中。)
    • Veracrypt,已经提到的和由@Richard答案的联系,进一步从TrueCrypt的发展。
      • 你必须在 Ubuntu 和 Windows 中安装它
      • 它是免费的、开源的并且享有良好的声誉
      • 它可以加密整个分区及其文件系统和文件。

我认为 Veracrypt 比gpg这个目的更方便,所以如果你想要比使用zip或类似工具更好的安全性,我会推荐 Veracrypt 或一个专用的(已经加密的)USB 笔式驱动器,它与 linux 兼容。