apple:osx:password_protect_folder_macos
Как установить и зашифровать папку в macOS
Что можно использовать в macOS
- Encrypto от MacPaw.
- Дисковая утилита в macOS ⭐️
Открываем Дисковую утилиту → Файл → Новый образ → Образ из папки
Выбираем нужную папку
Шифрование: 256 бит AES
Устанавливаем пароль
Формат образа: чтение/запись
Нажимаем сохранить
Ждём
Операция успешно выполнена
Пробуем открыть файл rtfm.dmg
Зашифрованный архив ZIP с паролем
Установить пароль
zip -er rtfm.zip rtfm/
Распаковать
unzip rtfm.zip
ZIP в macOS очень старый и что такое encryption, version 2.91 of 05 Jan 2007 мне например неизвестно. Не рекомендуется использовать для важных данных.
dx@dx-macmini ~ % zip -v Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license. This is Zip 3.0 (July 5th 2008), by Info-ZIP, with modifications by Apple Inc. Please report bugs to Apple. Compiled with gcc Apple LLVM 17.0.0 (clang-1700.0.13.5) [+internal-os] for Unix (Mac OS X) on Jul 11 2025. Zip special compilation options: USE_EF_UT_TIME (store Universal Time) SYMLINK_SUPPORT (symbolic links supported) LARGE_FILE_SUPPORT (can read and write large files on file system) ZIP64_SUPPORT (use Zip64 to store large files in archives) STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field) UIDGID_16BIT (old Unix 16-bit UID/GID extra field also used) [encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3) Encryption notice: The encryption code of this program is not copyrighted and is put in the public domain. It was originally written in Europe and, to the best of our knowledge, can be freely distributed in both source and object forms from any country, including the USA under License Exception TSU of the U.S. Export Administration Regulations (section 740.13(e)) of 6 June 2002. Zip environment options: ZIP: [none] ZIPOPT: [none]
Лучше использовать современный ZIP из homebrew
brew install zip zip -e --encrypt-method=aes256 rtfm.zip rtfm/
Ещё лучше использовать 7zip
brew install p7zip 7z a -p -mhe=on rtfm.7z rtfm/
EOM
apple/osx/password_protect_folder_macos.txt · Last modified: by dx
Discussion