- 博客(4)
- 资源 (4)
- 收藏
- 关注
原创 myeclipse 配置 mysql
第一步:下载mysql 访问 http://dev.mysql.com/downloads/mysql/5.0.html#win32 然后安装。第二步:下载jdbc驱动 访问http://dev.mysql.com/downl
2011-07-28 11:15:03 594
原创 AES解密 Given Final Block Not Properly Padded
最近这个异常困扰了我很久。 背景:利用apache的xmlsec.jar包实现对xml元素的加解密、签名和验证。在同一个工程里实现这些都没有问题。 但是在服务器加密后发往客户端解密,在解密时总是报出错误Given Final Block Not Properly Padded 。(服务器和客户端之间的通信是通过soap消息,而soap消息又是基于xml的,所以可以有针对性的对秘密元素进行保护)
2011-07-27 16:11:46 25037 1
原创 java实现xml的签名和验证
//签名函数 public static Element SignEnveloped (final String strTagNameOfElementsToSign, final Element elemParent, final String strReferenceIdentifier, final PrivateKey privateKey, final Publi
2011-07-06 16:03:37 8558 2
原创 java实现XML的加密和解密
基于xml元素的加密和解密。 //加密函数 public static org.w3c.dom.Element EncryptElement( final String strTagNameOfElementToEncrypt, final org.w3c.dom.Element elemParent) throws Exception { org.apache.xml.
2011-07-06 16:00:45 11288 4
jqueryUI工具类库
2012-08-29
struts2示例程序
2012-08-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人