Skip to content

Anass-ABEA/Java-Encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSA encryption

Author: Anass AIT BEN EL ARBI

Some Encryption methods used in Ciphers

  • AES/CBC/NoPadding (128)
  • AES/CBC/PKCS5Padding (128)
  • AES/ECB/NoPadding (128)
  • AES/ECB/PKCS5Padding (128)
  • RSA/ECB/PKCS1Padding (1024, 2048)
  • RSA/ECB/OAEPWithSHA-1AndMGF1Padding (1024, 2048)
  • RSA/ECB/OAEPWithSHA-256AndMGF1Padding (1024, 2048)

for more details check out Java Ciphers

Use of private and public key in a single application

class variables :

private PrivateKey privateKey;
private PublicKey publicKey;

Encryption method: String encrypt(String message) Uses String encode(byte[]) to encode the encrypted message to a String


Decryption method: String decrypt(String message) Uses String decode(byte[]) to decode the encrypted message to a String


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages