goodengineer / crypto

Crypto helper modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repo provides a list of utility modules for common crypto operations.

AES

  • factory methods to construct an AES-GCM cipher with a 96-bit nonce from the input raw key bytes
  • encrypt & decrypt methods, the output ciphertext is prefixed with the random nonce.

DES

  • factory methods to construct an DES or 3DES cipher from the raw key bytes or hex text
  • encrypt & decrypt methods
  • verify the constructed cipher against the check value

KEK Bundle

Helper class to construct a 3DES key encryption key from a list of components.

RSA

Common RSA operations for plugins to use. Targeting use-cases such as key extraction.

About

Crypto helper modules

License:Apache License 2.0


Languages

Language:Go 95.7%Language:Makefile 4.3%