Openssl encoding and cipher commands options.



  • Various encoding and cipher commands.

           base64
    	   Base64 Encoding
    
           bf, bf-cbc, bf-cfb, bf-ecb, bf-ofb
    	   Blowfish Cipher
    
           cast, cast-cbc
    	   CAST Cipher
    
           cast5-cbc, cast5-cfb, cast5-ecb, cast5-ofb
    	   CAST5 Cipher
    
           des, des-cbc, des-cfb, des-ecb, des-ede, des-ede-cbc, des-ede-cfb, des-
           ede-ofb, des-ofb
    	   DES Cipher
    
           des3, desx, des-ede3, des-ede3-cbc, des-ede3-cfb, des-ede3-ofb
    	   Triple-DES Cipher
    
           idea, idea-cbc, idea-cfb, idea-ecb, idea-ofb
    	   IDEA Cipher
    
           rc2, rc2-cbc, rc2-cfb, rc2-ecb, rc2-ofb
    	   RC2 Cipher
    
           rc4 RC4 Cipher
    
           rc5, rc5-cbc, rc5-cfb, rc5-ecb, rc5-ofb
    	   RC5 Cipher
    

    Here we have used the idea encoding as an example.

    $ openssl idea -help
    Usage: idea [options]
    Valid options are:
     -help               Display this summary
     -ciphers            List ciphers
     -in infile          Input file
     -out outfile        Output file
     -pass val           Passphrase source
     -e                  Encrypt
     -d                  Decrypt
     -p                  Print the iv/key
     -P                  Print the iv/key and exit
     -v                  Verbose output
     -nopad              Disable standard block padding
     -salt               Use salt in the KDF (default)
     -nosalt             Do not use salt in the KDF
     -debug              Print debug info
    
     -a                  Base64 encode/decode, depending on encryption flag
     -base64             Same as option -a
     -A                  Used with -[base64|a] to specify base64 buffer as a single line
     -bufsize val        Buffer size
     -k val              Passphrase
     -kfile infile       Read passphrase from file
     -K val              Raw key, in hex
     -S val              Salt, in hex
     -iv val             IV in hex
     -md val             Use specified digest to create a key from the passphrase
     -iter +int          Specify the iteration count and force use of PBKDF2
     -pbkdf2             Use password-based key derivation function 2
     -none               Don't encrypt
     -*                  Any supported cipher
     -rand val           Load the file(s) into the random number generator
     -writerand outfile  Write random data to the specified file
     -z                  Use zlib as the 'encryption'
     -engine val         Use engine, possibly a hardware device
    

Log in to reply
 

© Lightnetics 2024