ByTekLab
  • Home
  • Acronyms
  • Cheat-Sheets
  • User Manuals

Cryptography

How to generate SHA256HMAC in Node.JS

Today I had to do this for my job (hash some info) and I think is a good opportunity to share the knowledge. Here is the code, you can simply copy it and paste it in a file called SHA256Hmac.js and run it. let crypto; try { crypto = require('
Hector Perez 17 Mar 2017

How to generate RSA key pair in Java 1.8

Recently I was wondering how to generate a private key in Java for a personal project. I found out how to generate the actual key pair with RSA algorithm. Here is the java code for that, a simple class that you can run to check how things work. import java.
Hector Perez 15 Mar 2017
ByTekLab © 2025. Powered by Ghost