mac/7zip を使って AES256 暗号化するメモ

## インストール

brew install p7zip 

## 暗号化コマンド

7z a -mem=AES256 -p[パスワード] -ssw [zipファイルにした後の名前] [対象のファイル]
例)7z a -mem=AES256 -ptest123 -ssw test.csv.zip test.csv

## ちゃんと AES256 で暗号化されてるか確認

7z l -slt test.csv.zip

7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28p7zip Version 17.04 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64)
Scanning the drive for archives:1 file, 252 bytes (1 KiB)
Listing archive: testfile.csv.zip
--Path = testfile.csv.zipType = zipPhysical Size = 252
----------
Path = test.csv
Folder = -Size = 44
Packed Size = 72
Modified = 2022-04-26 15:17:55
Created = 2022-04-26 15:17:55
Accessed = 2022-04-26 15:17:55
Attributes = _ -rw-r--r--
Encrypted = +
Comment =
CRC =
Method = AES-256 Store
Characteristics = NTFS WzAES : Encrypt
Host OS = UnixVersion = 51
Volume Index = 0
Offset = 0

## 解凍する

7z e test.csv.zip