RSA ( Rivest Shamir Adleman )is crypthograph system that used to give a secret information and digital signature . Its security based on Integer Factorization Problem (IFP). RSA uses an asymetric key. RSA was created by Rivest, Shamir, and Adleman in 1977. Every user have a pair of key, public key and private key. Public key (e) . You may choose any number for e with these requirements, 1< e <Æ (n), where Æ (n)= (p-1) (q-1) ( p and q are first-rate), gcd (e,Æ (n))=1 (gcd= greatest common divisor). Private key (d). d=(1/e) mod(Æ (n)) Encyption (C) . C=Mª mod(n), a = e (public key), n=pq Descryption (D) . D=C° mod(n), o = d (private key
標(biāo)簽: crypthograph information Adleman Rivest
上傳時(shí)間: 2017-09-01
上傳用戶:chfanjiang
基本輸出入,與檔案處理。在Java程式的JFrame視窗使用AWT的List元件和File物件建立瀏覽檔案和資料夾。
標(biāo)簽:
上傳時(shí)間: 2017-09-04
上傳用戶:225588
給定一批的樣本,當(dāng)然這些樣本間必須相互獨(dú)立。如果Q > chi2(p, nu),假設(shè)拒絕,否則通過(guò)。 ARGUMENTS: x Absolut numbers. p The prob ability value, calculated from Q. Q The resulting Q-value.
標(biāo)簽: 樣本
上傳時(shí)間: 2017-09-06
上傳用戶:yoleeson
電子鐘,實(shí)現(xiàn)自動(dòng)計(jì)時(shí)。proteus開發(fā)
標(biāo)簽:
上傳時(shí)間: 2014-01-24
上傳用戶:ljt101007
11111111111111活用自動(dòng)控制,運(yùn)用科學(xué)數(shù)學(xué)自然
標(biāo)簽: adaptive-control
上傳時(shí)間: 2015-03-16
上傳用戶:54333
文件中詳細(xì)列舉出FLIR雷達(dá)產(chǎn)品所使用的頻率波段以及發(fā)射功率資訊!
上傳時(shí)間: 2015-03-18
上傳用戶:戴斗笠的神秘人
兩個(gè)鏈表的交集 #include<stdio.h> #include<stdlib.h> typedef struct Node{ int data; struct Node *next; }Node; void initpointer(struct Node *p){ p=NULL; } int printlist(struct Node* head){ int flag=1; head=head->next; /* 因?yàn)闃?biāo)記1的地方你用了頭結(jié)點(diǎn),所以第一個(gè)數(shù)據(jù)域無(wú)效,應(yīng)該從下一個(gè)頭元結(jié)點(diǎn)開始 */ if(head==NULL) printf("NULL\n"); else { while(head!=NULL) { if(flag==1) { printf("%d",head->data); flag=0; } else { printf(" %d",head->data); } head=head->next; } printf("\n"); } return 0; } struct Node *creatlist(struct Node *head) { int n; struct Node *p1=(struct Node *)malloc(sizeof(struct Node)); p1->next=NULL; while(scanf("%d",&n),n!=-1) { struct Node *pnode=(struct Node *)malloc(sizeof(struct Node)); pnode->next=NULL; pnode->data=n; if(head==NULL) head=pnode; p1->next=pnode; p1=pnode; } return head; } struct Node *Intersect(struct Node *head1, struct Node *head2) { struct Node *p1=head1,*p2=head2;/*我這里沒有用頭指針和頭結(jié)點(diǎn),這里是首元結(jié)點(diǎn)head1里面就是第一個(gè)數(shù)據(jù),一定要理解什么事頭指針, 頭結(jié)點(diǎn),和首元結(jié)點(diǎn) 具體你一定要看這個(gè)博客:http://blog.sina.com.cn/s/blog_71e7e6fb0101lipz.html*/ struct Node *head,*p,*q; head = (struct Node *)malloc(sizeof(struct Node)); head->next = NULL; p = head; while( (p1!=NULL)&&(p2!=NULL) ) { if (p1->data == p2->data) { q = (struct Node *)malloc(sizeof(struct Node)); q->data = p1->data; q->next = NULL; p->next = q;//我可以認(rèn)為你這里用了頭結(jié)點(diǎn),也就是說(shuō)第一個(gè)數(shù)據(jù)域無(wú)效 **標(biāo)記1** p = q; p1 = p1->next; p2 = p2->next; } else if (p1->data < p2->data) { p1 = p1->next; } else { p2 = p2->next; } } return head; } int main() { struct Node *head=NULL,*headt=NULL,*t; //initpointer(head);//這里的函數(shù)相當(dāng)于head=NULL; // initpointer(headt);//上面已經(jīng)寫了headt=NULL那么這里可以不用調(diào)用這個(gè)函數(shù) head=creatlist(head); headt=creatlist(headt); t=Intersect(head,headt); printlist(t); }
標(biāo)簽: c語(yǔ)言編程
上傳時(shí)間: 2015-04-27
上傳用戶:coco2017co
第一節(jié)、samba是干什么的?它有什么用? Samba(SMB是其縮寫) 是一個(gè)網(wǎng)絡(luò)服務(wù)器,它是Linux作為本地服務(wù)器最重要的一個(gè)服務(wù),用于Linux和Windows共享文件之用;Samba可以用于Windows和 Linux之間的共享文件,也一樣用于Linux和Linux之間的共享文件;不過(guò)對(duì)于Linux和Linux之間共享文件有更好的網(wǎng)絡(luò)文件系統(tǒng) NFS,NFS也是需要架設(shè)服務(wù)器的; 2、安裝及服務(wù)操作命令 安裝samba程序非常簡(jiǎn)單,使用rpm -q samba查看當(dāng)前系統(tǒng)是否已經(jīng)安裝了samba軟件。 如果沒有那就進(jìn)入光盤,rpm -ivh *samba*.rpm即可。 仔細(xì)說(shuō)下安裝的包: samba-common-3.0.28-0.el5.8 //samba服務(wù)器和客戶端中的最基本文件 samba-3.0.28-0.el5.8 //samba服務(wù)器核心軟件包 system-config-samba-1.2.39-1.el5 //samba圖形配置界面 samba-client-3.0.28-0.el5.8 //samba客戶端軟件 啟動(dòng)、暫停和停止服務(wù): /etc/init.d/smb start /etc/init.d/smb stop /etc/init.d/smb restart 或 service smb start service smb stop service smb restart 第二節(jié)、由最簡(jiǎn)單的一個(gè)例子說(shuō)起,匿名用戶可讀可寫的實(shí)現(xiàn) 第一步: 更改smb.conf 我們來(lái)實(shí)現(xiàn)一個(gè)最簡(jiǎn)單的功能,讓所有用戶可以讀寫一個(gè)Samba 服務(wù)器共享的一個(gè)文件夾;我們要改動(dòng)一下smb.conf ;首先您要備份一下smb.conf文件; [root@localhost ~]# cd /etc/samba [root@localhost samba]# cp smb.conf smb.conf.bak [root@localhost samba]# vi smb.conf 或geidt smb.conf & 然后我們把下面這段寫入smb.conf中: [global] workgroup = WORKGROUP netbios name = Liukai server string = Liukai's Samba Server security = share [test] path = /opt/test writeable = yes browseable = yes guest ok = yes 注解: [global]這段是全局配置,是必段寫的。其中有如下的幾行; workgroup 就是Windows中顯示的工作組;在這里我設(shè)置的是WORKGROUP (用大寫); netbios name 就是在Windows中顯示出來(lái)的計(jì)算機(jī)名; server string 就是Samba服務(wù)器說(shuō)明,可以自己來(lái)定義;這個(gè)不是什么重要的; security 這是驗(yàn)證和登錄方式,這里我們用了share ;驗(yàn)證方式有好多種,這是其中一種;另外一種常用的是user的驗(yàn)證方式;如果用share呢,就是不用設(shè)置用戶和密碼了; [test] 這個(gè)在Windows中顯示出來(lái)是共享的目錄; path = 可以設(shè)置要共享的目錄放在哪里; writeable 是否可寫,這里我設(shè)置為可寫; browseable 是否可以瀏覽,可以;可以瀏覽意味著,我們?cè)诠ぷ鹘M下能看到共享文件夾。如果您不想顯示出來(lái),那就設(shè)置為 browseable=no,guest ok 匿名用戶以guest身份是登錄; 第二步:建立相應(yīng)目錄并授權(quán) [root@localhost ~]# mkdir -p /opt/test [root@localhost ~]# id nobody uid=99(nobody) gid=99(nobody) groups=99(nobody) [root@localhost ~]# chown -R nobody:nobody /opt/test 注釋:關(guān)于授權(quán)nobody,我們先用id命令查看了nobody用戶的信息,發(fā)現(xiàn)他的用戶組也是nobody,我們要以這個(gè)為準(zhǔn)。有些系統(tǒng)nobody用戶組并非是nobody ; 第三步:?jiǎn)?dòng)服務(wù)器 第四步:訪問(wèn)Samba 服務(wù)器的共享; 1、在Linux 中您可以用下面的命令來(lái)訪問(wèn); [root@localhost ~]# smbclient -L //liukai或 smbclient //192.168.0.94/test Password: 注:直接按回車 2、在Windows中,您可以用下面的辦法來(lái)訪問(wèn); \\liukai 或 \\192.168.0.94 3、說(shuō)明:如果用了netbiosname,就可以用“\\主機(jī)名”來(lái)訪問(wèn),如果沒用netbiosname,就不能用主機(jī)名訪問(wèn)。 第三節(jié)、簡(jiǎn)單的密碼驗(yàn)證服務(wù)器 修改smb.conf文件: security = user guest account = liukai encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd 然后,建立一個(gè)新用戶 useradd liukai passwd liukai 成功后,cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd smbpasswd -a liukai 這就成功地添加了一個(gè)smb用戶。 重啟服務(wù),使用這個(gè)用戶進(jìn)行登錄即可。
上傳時(shí)間: 2015-05-13
上傳用戶:yangkang1192
Boost C++ Libraries Free peer-reviewed portable C++ source libraries Boost C++ Libraries 基本上是一個(gè)免費(fèi)的 C++ 的跨平臺(tái)函式庫(kù)集合,基本上應(yīng)該可以把它視為 C++ STL 的功能再延伸;他最大的特色在於他是一個(gè)經(jīng)過(guò)「同行評(píng)審」(peer review,可參考維基百科)、開放原始碼的函式庫(kù),而且有許多 Boost 的函式庫(kù)是由 C++ 標(biāo)準(zhǔn)委員會(huì)的人開發(fā)的,同時(shí)部分函式庫(kù)的功能也已經(jīng)成為 C++ TR1 (Technical Report 1,參考維基百科)、TR2、或是 C++ 0x 的標(biāo)準(zhǔn)了。 它的官方網(wǎng)站是:http://www.boost.org/,包含了 104 個(gè)不同的 library;由於他提供的函式庫(kù)非常地多,的內(nèi)容也非常地多元,根據(jù)官方的分類,大致上可以分為下面這二十類: 字串和文字處理(String and text processing) 容器(Containers) Iterators 演算法(Algorithms) Function objects and higher-order programming 泛型(Generic Programming) Template Metaprogramming Preprocessor Metaprogramming Concurrent Programming 數(shù)學(xué)與數(shù)字(Math and numerics) 正確性與測(cè)試(Correctness and testing) 資料結(jié)構(gòu)(Data structures) 影像處理(Image processing) 輸入、輸出(Input/Output) Inter-language support 記憶體(Memory) 語(yǔ)法分析(Parsing) 程式介面(Programming Interfaces) 其他雜項(xiàng) Broken compiler workarounds 其中每一個(gè)分類,又都包含了一個(gè)或多個(gè)函式庫(kù),可以說(shuō)是功能相當(dāng)豐富。
標(biāo)簽: Boost C++ Libraries
上傳時(shí)間: 2015-05-15
上傳用戶:fangfeng
GRE 數(shù)學(xué)圣經(jīng),下面是詳細(xì)的英文介紹: Comprehensive Prep for GRE Math Every year, students pay $1,000 and more to test prep companies to prepare for the math section of the GRE. Now you can get the same preparation in a book. Although the GRE math section is difficult, it is very learnable. GRE Math Bible presents a thorough analysis of GRE math and introduces numerous analytic techniques that will help you immensely, not only on the GRE but in graduate school as well.
標(biāo)簽: GRE Math 數(shù)學(xué)
上傳時(shí)間: 2015-08-22
上傳用戶:東大寺的
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1