Skip to content

lmangani/ssldec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔓 ssldec

Promise based SSL Encrypt/Decrypt using Private or Public Keys

🔑 Usage

let SSLdec = require('ssldec');
let crypt = new SSLdec();

crypt.setPrivateKey({
    path: '/path/to/cakey.pem'
});

crypt.encrypt('somedata').then(function(encrypted_string){ console.log(encrypted_string); 
	crypt.decrypt(encrypted_string).then(function(decrypted_buffer){ 
	        console.log(decrypted_buffer.toString('utf8') );
	});
});

Credit

Pure JS RSA by node-rsa, library based on recrypt

About

Node SSL Pubkey Decoder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published