Skip to content
/ cpp-rsa Public

a simple (probably bad) implementation for rsa in c++.

Notifications You must be signed in to change notification settings

BaumFX/cpp-rsa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

cpp rsa

a simple implementation of an rsa algorithm using c++.

getting started

these instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

literally download & include

you can then use

std::string input = "hello this is a cool test";
std::string result = rsa::encrypt(input);

to encrypt data.

decryption works like this:

std::string encrypted = "Mo1BU6faf7l...+UOqPbCees="
std::string result = rsa::decrypt(input);

of course encryption + decryption have to use the same primes. so messages encrypted with this library will only be decrypted by this library, please feel free to change the primes to your liking/needs.

contributing

if you have any suggestions or comments (such as an opinion from someone who actually knows cryptographics), please file an issue :)

versioning

we dont have that since im lazy and dont do updates.

authors

license

its like 10 lines but dont say you made it, okay?

About

a simple (probably bad) implementation for rsa in c++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages