Description: Internship RSA public key encryption based on three
An internship purpose
An understanding of public key cryptography algorithm, familiar with common cryptographic algorithms: RSA, elliptic curve cryptography
2, RSA encryption algorithm, for example, public key cryptography algorithm to achieve master encryption and decryption process.
Second, the practical content
In RSA, for example, the use of java in the relevant class implements the specified string encryption and decryption.
1, generates a public key pair
(1) the use of java class in KeypairGenerator create a public key pair using KeypairGenerator static method getInstance () to get the object KeypairGenerator type parameters required for the encryption algorithm name RSA.
KeyPairGenerator kpg = KeyPairGenerator.getInstance ("RSA")
(2) the use of genKeyPair KeyPairGenerator class () method returns the generated key pair:
KeyPair kp = kpg.genKeyPair ()
References (3) Returns the public key component of this key an
To Search:
File list (Check if you may need any files):
src\Dec_RSA.java
...\Enc_RSA.java
...\Skey_RSA.java
src