资源简介
新浪微博通过账户和密码获取cookie

代码片段和文件信息
package com.sdhsie.essos.tyrosh.weibo.util;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.RSAPublicKeySpec;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import org.apache.commons.codec.binary.Hex;
/**
* Created by zcx on 2016/7/6.
*/
public class BigIntegerRSA {
public String rsaCrypt(String modeHex String exponentHex String messageg)
throws IllegalBlockSizeException BadPaddingException
NoSuchAlgorithmException InvalidKeySpecException
NoSuchPaddingException InvalidKeyException
UnsupportedEncodingException {
KeyFactory factory = KeyFactory.getInstance(“RSA“);
BigInteger m = new BigInteger(modeHex 16); /* public exponent */
BigInteger e = new BigInteger(exponentHex 16); /* modulus */
RSAPublicKeySpec spec = new RSAPublicKeySpec(m e);
RSAPublicKey pub = (RSAPublicKey) factory.generatePublic(spec);
Cipher enc = Cipher.getInstance(“RSA“);
enc.init(Cipher.ENCRYPT_MODE pub);
byte[] encryptedContentKey = enc.doFinal(messageg.getBytes(“GB2312“));
return new String(Hex.encodeHex(encryptedContentKey));
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1581 2016-07-07 09:07 新浪微博模拟登陆\BigIntegerRSA.java
文件 10159 2016-07-08 14:55 新浪微博模拟登陆\SinaLogonDog.java
文件 3174 2016-07-08 09:29 新浪微博模拟登陆\SinaSSOEncoder.java
目录 0 2016-07-08 14:55 新浪微博模拟登陆
----------- --------- ---------- ----- ----
14914 4
相关资源
- 新浪微博用户的实时影响力研究
- 爬取新浪微博上的妹纸照片的爬虫程
- .net4.0使用qq登录、新浪微博、网易微
- 乐享新浪微博刷评论软件v1.25中文绿色
- 新浪微博,情感分析标记语料共12万条
- 新浪微博评论语料
- 123VIP新浪微博注册机 v1.6.3.0.zip
- 瑞祥新浪微博备份工具130118绿色版
- 新浪微博备份工具1.5中文绿色免费版
- 新浪微博APP个人模仿版
- 新浪微博用户数据信息--性别,地理位
- 仿新浪微博客户端
- 阿达明新浪微博账号批量检测解锁器
- 新浪微博的用户数据
- 新浪微博混合云架构应用实践之路.
- 新浪微博爬虫支持用户、超话、地点
- 新浪微博自动推广专家_v2.18.zip
- 仿新浪微博.rar
- 新浪微博晒号软件(桌面提取器5.0)
- 爬取一个用户的所有微博
- 新浪微博tab菜单
- iOS图文混排模仿新浪微博
- 新浪微博logo源文件PSD及AI格式
- 一键分享到新浪微博,腾讯微博,人
- 网站常用的第三方登录
- 新浪微博舆情检测源码C.rar
- IOS高访新浪微博界面(处理@#链接 特
- ARM处理器的嵌入式新浪微博客户端设
- 新浪微博爬虫功能包括爬取用户信息
- axure模拟新浪微博
评论
共有 条评论