This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
profile_encryption [2022/03/10 18:21] James Prestwood |
profile_encryption [2022/03/10 18:23] James Prestwood |
||
---|---|---|---|
Line 33: | Line 33: | ||
==== Decrypting Profiles ==== | ==== Decrypting Profiles ==== | ||
- | Oops, I accidentally just encrypted my profiles and I want them back! Not all is lost and profiles can be decrypted back into plaintext using iwd-decrypt-profile, given you remember the password used with systemd-creds. This tool takes an input file (--infile), password/secret file (--pass/--file), and optionally a profile name (--name) if one cannot be determined based on the input file. | + | Oops, I accidentally just encrypted my profiles and I want them back! Not all is lost and profiles can be decrypted back into plaintext using iwd-decrypt-profile, given you remember the password used with systemd-creds. This tool takes an input file (**--infile**), password/secret file (**--pass/--file**), and optionally a profile name (**--name**) if one cannot be determined based on the input file. |
- | Note: Depending on how you set up the credentials with systemd-creds your password might have a newline appended. This is due to systemd ultimately storing it in a file and appending a newline character. | + | Note: Depending on how you set up the credentials with systemd-creds your password might have a newline appended. This is due to systemd ultimately storing it in a file and appending a newline character, shown in the example below. |
./tools/iwd-decrypt-profile --infile /var/lib/iwd/MySSID.psk --pass secret123$'\n' | ./tools/iwd-decrypt-profile --infile /var/lib/iwd/MySSID.psk --pass secret123$'\n' |