怎么用vb实现rsa算法?谢谢了,大神帮忙啊
收起
知与谁同
2018-07-18 10:42:50
2074
0
1
条回答
写回答
取消
提交回答
-
Private Sub Command3_Click() Dim ni%, m1%, m%, n%, r% n1 = Text1.Text m1 = Text2.Text If m1 > n1 Then ' m>n m = m1: n = n1 Else m = n1: n = m1 End If Do r = m Mod n If r = 0 Then Exit Do m = n n = r Loop Text3.Text = n Text4.Text = m1 * n1 / n End Sub
2019-07-17 22:56:55