Categorygithub.com/Brix101/budgetto-backend
repository
0.0.0-20240814095426-eb4c44f23edc
Repository: https://github.com/brix101/budgetto-backend.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

budgetto

Generating RSA Keys

To generate RSA keys and convert them to base64 format, follow these steps:

  1. Generate a private key:

    openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048
    
  2. Generate the corresponding public key:

    openssl rsa -pubout -in private_key.pem -out public_key.pem
    
  3. Convert the private key to base64 format:

    base64 -w 0 private_key.pem > private_key_base64.txt
    
  4. Convert the public key to base64 format:

    base64 -w 0 public_key.pem > public_key_base64.txt
    

These commands will create private_key.pem, public_key.pem, private_key_base64.txt, and public_key_base64.txt files in your current directory.