Skip to content

mchl18/rsa-aes-hybrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsa-aes-hybrid

Implementation of a hybrid RSA-AES encryption

Usage

const service = new EncryptionService();

const rsaKey = service.generateRsaKey();
const messageToTransport = service.generateTransportMessage('Hello World',  service.publicKeyString(rsaKey));

// transfer the message...

const transportedMessage = service.parseTransportMessage(
  messageToTransport
);

const decryptedPayload = await service.decryptTransportMessage(
  transportedMessage,
  rsaKey
);

About

Implementation of a hybrid RSA-AES encryption

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published