Skip to content

Thiago-Simoes/EasyRSA.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyRSA.jl

This project should not be used in production environments under any circumstances.

This project is under development and totally free-to-use, feel free to contribute. I'm a student so forgive any possible problem and report it opening a issue. Ideas can also, and should, be sent.

Technical reference

This project use as reference the original paper of RSA ("A Method for Obtaining Digital Signatures and Public-Key Cryptosystems").

How to install

Just copy and paste the following command in Julia Terminal:

import Pkg; Pkg.add("EasyRSA")

How to use

Generating keys

  1. Choose how many bits do you want for your keys.
bits = 512
  1. Generate your P and Q:
p, q = generate_p_q(bits)
  1. Generate your keys:

This returns a Tuple, respectively Public and Private Key.

keys = generate_keys(p, q)

Encrypting

  1. Use your Public Key to encrypt your data.
msg = "Secret message."
encrypted_message = encrypt(msg, keys[1])

Decrypting

  1. Use your Private Key to decrypt your data.
decrypted_message = decrypt(encrypted_message, keys[2])

About

A pure Julia implementation of RSA.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages