Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.15 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.15 KB

crypt

Package crypt provides functions for encrypting and decrypting data using various cryptographic algorithms, including RSA and AES.

This package is designed to simplify the process of securely encrypting and decrypting data following industry standards. It includes functions for key generation, encryption, and decryption using well-established cryptographic primitives.

Usage

Generate RSA Keys

256-byte

openssl genpkey -algorithm RSA -out private-key.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -in private-key.pem -pubout -out public-key.pem

384-byte

openssl genpkey -algorithm RSA -out private-key.pem -pkeyopt rsa_keygen_bits:3072
openssl rsa -in private-key.pem -pubout -out public-key.pem

512-byte

openssl genpkey -algorithm RSA -out private-key.pem -pkeyopt rsa_keygen_bits:4096
openssl rsa -in private-key.pem -pubout -out public-key.pem

LICENSE

license