美文网首页
openssl加密文件

openssl加密文件

作者: 王义杰 | 来源:发表于2019-08-24 09:10 被阅读0次

openssl是个密码工具集,提供多端接口调用方式
组成:

  1. 代码库 libcryto ,libssl(ssl/tls)
  2. 工具集 openssl

对称加密

对称加密主要是用aes,des算法
usage:

-in <file>     input file
-out <file>    output file 加密后的文件存放位置
-pass <arg>    pass phrase source
-e             encrypt  指定加密算法
-d             decrypt  指定解密算法
-a/-base64     base64 encode/decode, depending on encryption flag   #使用base64编/解码
-k             passphrase is the next argument   指定密码
-kfile         passphrase is the first line of the file argument
-md            the next argument is the md to use to create a key
                 from a passphrase.  One of md2, md5, sha or sha1
-S             salt in hex is the next argument
-K/-iv         key/iv in hex is the next argument 
-[pP]          print the iv/key (then exit if -P)
-bufsize <n>   buffer size
-nopad         disable standard block padding
-engine e      use engine e, possibly a hardware device.
Cipher Types
-aes-128-cbc               -aes-128-ccm               -aes-128-cfb
...

加密:

cat 123.txt
openssl.exe enc -e -aes-128-cbc -in 123.txt  -k qqqq -out 321.txt

解密:

openssl.exe enc -d -aes-128-cbc -in 321.txt  -k qqqq  -out 456.txt
cat  456.txt

相关文章

  • openssl使用相关简介(一)

    openssl使用相关简介 简单的加密一个文件 解释一下: openssl enc: openssl里面的文件加密...

  • openssl加密文件

    openssl是个密码工具集,提供多端接口调用方式组成: 代码库 libcryto ,libssl(ssl/tls...

  • openssl 在linux上的使用3

    使用AES加密文件JWT再用RSA加密AES的密钥,最后用OPENSSL转化加密的文件为base64编码的方法如下...

  • OpenSSL

    openssl 功能 openssl可以实现:秘钥证书管理、对称加密和非对称加密 。 加密命令 对称加密算法Ope...

  • PHP 使用DES PKCS7/CBC模式 进行加密

    PHP 加密 1 加密方式如下: openssl_encrypt 的使用openssl_encrypt 参数: ...

  • OpenSSL(简易版)

    OpenSSL:开源项目 三个组件: openssl命令: openssl命令 对称加密: openssl命令 单...

  • linux进行md5加密

    linux进行md5加密 openssl做MD5加密 md5加密 交互式输入 管道标准输入处理 对文件处理 md5...

  • OpenssL在linux上的使用2

    使用AES加解密数据 1 创建文件 2 打开openssl控制台: 3加密: 在控制台中输入 enc 表示加密命令...

  • RSA在线测试及签名测试工具

    RSA加密算法是一种非对称加密算法。 填充类型: OPENSSL_PKCS1_PADDING OPENSSL_SS...

  • RSA6

    密钥文件无法使用openssl解出,e=3,n很大,低加密指数攻击 题目给出public.txt与secret.t...

网友评论

      本文标题:openssl加密文件

      本文链接:https://www.haomeiwen.com/subject/nddfectx.html