herrDeng網內搜尋
自訂搜尋
Ads
2015年12月11日 星期五
2015年12月10日 星期四
RSA cipher解密
解回明文
import java.math.BigInteger;
public class ex2 {
public static void main(String[] args) {
BigInteger n=new BigInteger("5375388922978628413155272656747327652336395530199103021900839849090732075550437233179766702787100243937175380405082366985570014906877346763928089904752147");
BigInteger d=new BigInteger("3562336077709646293856410845969831535184737018515713275359421306058446640504285015571117411667368274571293441355632153687264610437891764149716318547851669");
BigInteger c=new BigInteger("4646214319130296784626336389218304062490256344497824318351606042291236051054052316596982428177153055110734920639810028422212513692377137973131254994553255");
}
}
2015年12月4日 星期五
ex10 字串練習
String X="this is an exercise. A happy Day"
1.去掉空格
2. a->@, e->'您'
3 改大寫
4 取子字串4~8
5. 字串反轉
1.去掉空格
2. a->@, e->'您'
3 改大寫
4 取子字串4~8
5. 字串反轉
2015年12月1日 星期二
2015年11月27日 星期五
2015年11月26日 星期四
2015年11月22日 星期日
2015年11月20日 星期五
訂閱:
文章 (Atom)
熱門文章
-
明文=I'm student key=(2,15,8) 密文=?
-
C字串練習 字串 char word[]="You win!"; 輸出為: You win! You win You wi You w You You Yo Y 給進階使用者: gets () 是個危險的函式!
-
計算你的BMI
-
array ex 1, 2,3,7,8
-
請用C/C++ 程式計算 S=1*1+2*2+3*3+4*4+.....+20*20=?
-
replace(str1, str2,i) 程式碼
-
GCD(123456789,345634567)=?