had to read the crypto api docs for this
crypto module