| | |
|
Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
ASP encryption |
From: |
Effenberg |
Date: |
3/8/2001 10:32:14 PM |
IP: |
202.156.58.19 |
Problem:
I'm planning to use the RSA algorithm for ASP encryption and decryption
where in a nutshell,the RSA algo goes like this
1.Find two prime numbers, p and q, and compute their product, n.
2.Find a pair of integers d and e such that
de = 1 (mod (p - 1)(q - 1))
3.Now, for any message m not being multiple of p or q,
Encryption: c = m(to the power of e) *(mod n)Decryption: c(to the power of d) *(mod n) = m
4.The two numbers, n and e, form the public encryption key. d is the private decryption key.
Questions:
1.my question is, how do i even start?
2.I guess encrypt and decrypt are pretty straightforward, but how do i GENERATE A KEY?
3.And what is "mod" in VBscript which i am going to use in ASP?
4.any code or sites to help me?
Thanks
|
|
|
|
|
|
|