Freelance Plugin - Stripe Issuing JWE

Hello,

I’m looking for a freelancer to build a private plugin to encrypt an RSA token for Stripe Issuing.

The use case is to create an action to call the js-jose library, call the Stripe endpoint for public keys, and encrypt a 4-digit PIN ready for use in their API.

The details are here: https://stripe.com/docs/issuing/cards/pin-management#jwe-encryption

Please DM me with a quote and timescale if you are interested. Alternatively, I’d be happy to subscribe if one of the big plugin builders wants to build it out!

Link is not working.

Thanks @ankur1 - it looks like Stripe only lets you access it if you’re logged in. Please see screenshots:


async function encryptPin(pin) {
  keyData = await fetch('https://issuing-key.stripe.com/v1/keys').then(r => r.json())

  const rsa_key = Jose.Utils.importRsaPublicKey(keyData.jwk, "RSA-OAEP");
  const cryptographer = new Jose.WebCryptographer();
  cryptographer.setContentEncryptionAlgorithm("A128CBC-HS256");

  const encrypter = new Jose.JoseJWE.Encrypter(cryptographer, rsa_key);
  encrypter.addHeader('kid', keyData.key_id)

  encryptedNumber = await encrypter.encrypt(pin)

  return encryptedNumber
}