Difference between revisions of "AES"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 7: | Line 7: | ||
* [[Encrypt]] file (<code>openssl enc</code>): | * [[Encrypt]] file (<code>openssl enc</code>): | ||
− | :<code>openssl enc -[[aes-256]]-cbc -in un_encrypted.data -out encrypted.data</code> | + | :<code>openssl enc -[[aes-256]]-[[cbc]] -in un_encrypted.data -out encrypted.data</code> |
: Use <code>[[file]]</code> command to verify file type. | : Use <code>[[file]]</code> command to verify file type. | ||
<pre> | <pre> | ||
Line 16: | Line 16: | ||
* [[Decrypt]] file (<code>openssl enc -d</code>): | * [[Decrypt]] file (<code>openssl enc -d</code>): | ||
:<code>openssl enc -d -aes-256-cbc -in encrypted.data -out un_encrypted.data</code> | :<code>openssl enc -d -aes-256-cbc -in encrypted.data -out un_encrypted.data</code> | ||
− | |||
== Related terms == | == Related terms == |
Revision as of 14:40, 13 April 2020
wikipedia:Advanced Encryption Standard
AES-XTS
OpenSSL
- Encrypt file (
openssl enc
):
openssl enc -aes-256-cbc -in un_encrypted.data -out encrypted.data
- Use
file
command to verify file type.
file encrypted.data encrypted.data: openssl enc'd data with salted password
- Decrypt file (
openssl enc -d
):
openssl enc -d -aes-256-cbc -in encrypted.data -out un_encrypted.data
Related terms
See also
Advertising: