gossh执行命令packagemainimport("fmt"gossh"golang.org/x/crypto/ssh""net")typeClistruct{userstringpwdstringaddrstringclient*gossh.Clientsession*gossh.SessionLastResultstring}func(c*Cli)Connect()(*Cli,error)
分类:
其他好文 时间:
2019-01-28 19:14:58
阅读次数:
239
Go语言开发(十五)、Go语言常用标准库五一、md51、md5简介md5在crypto/md5包中,md5包提供了New和Sum方法。funcNew()hash.HashfuncSum(data[]byte)[Size]bytehash.Hash继承了io.Writer,因此可以将其当成一个输入流进行内容的更新。typeWriterinterface{Write(p[]byte)(nint,err
分类:
编程语言 时间:
2019-01-20 00:09:01
阅读次数:
208
最近EOS官网出了文档,说可以跑通一个独立测试的节点了。这周尝试自行搭建了一下,由于自己不完全做mac下的开发,且这玩意是C写的,所以make起来遇到不少坑,记录下来。附完整踩坑、填坑记录。 1. 搭建环境 在mac下大家应该都用brew来管理包吧。首先官方说要安装: Boost 1.64 Open ...
分类:
系统相关 时间:
2019-01-19 13:13:33
阅读次数:
232
package com.zhx.base.util; import org.apache.commons.codec.binary.Base64; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.c... ...
分类:
编程语言 时间:
2019-01-17 15:16:38
阅读次数:
172
AES加密 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 from Crypto.Cipher import AES def encrypt(message): key = b' ...
分类:
其他好文 时间:
2019-01-17 12:49:00
阅读次数:
201
package DESEncode;import java.security.SecureRandom; import javax.crypto.Cipher;import javax.crypto.SecretKey;import javax.crypto.SecretKeyFactory;imp ...
分类:
其他好文 时间:
2019-01-16 11:58:05
阅读次数:
152
ModuleNotFoundError: No module named 'Crypto.Cipher'报错问题 原因及处理: 在使用python3是经常会用到import一个第三方库,但是有时候会提示某个模块不存在,如Crypto 其实是因为Python3里面这个模块的名字变了。 1.pip in ...
分类:
其他好文 时间:
2019-01-15 14:19:04
阅读次数:
478
import java.nio.charset.Charset; import java.security.Key; import javax.crypto.Cipher;import javax.crypto.KeyGenerator;import javax.crypto.SecretKey;i ...
分类:
编程语言 时间:
2019-01-15 14:10:46
阅读次数:
217
文中首先解释了加密解密的一些基础知识和概念,然后通过一个加密通信过程的例子说明了加密算法的作用,以及数字证书的出现所起的作用。接着对数字证书做一个详细的解释,并讨论一下windows中数字证书的管理,最后演示使用makecert生成数字证书。如果发现文中有错误的地方,或者有什么地方说得不够清楚,欢迎... ...
分类:
其他好文 时间:
2019-01-12 10:33:28
阅读次数:
179