---
# System prepended metadata

title: 'HW2 (4/26): Decrypt the signed file.'

---

# HW2 (4/26): Decrypt the signed file.
![](https://i.imgur.com/SwR5DoJ.jpg)
![](https://i.imgur.com/Pf90ISb.jpg)
![](https://i.imgur.com/mD7uvxb.jpg)
![](https://i.imgur.com/GbpBhbO.jpg)
![](https://i.imgur.com/VQzaqLk.jpg)
![](https://i.imgur.com/fBYyhbO.jpg)
![](https://i.imgur.com/oTN0ugY.jpg)

(1) 將老師提供的 key 輸入到 public.key
(2) 使用 `gpg --import public.key` 載入key
(3) 使用 `gpg -d ascii-art.gpg` 解碼
也可將結果導出到文件
`gpg -d ascii-art.gpg > out.txt`
(4) 因虛擬機螢幕小，所以將結果輸出到檔案中用主機開啟
輸出結果為: 愛因斯坦的頭像
