Giter Club home page Giter Club logo

postman-encryption-lib's Introduction

Mastercard Postman Encryption Lib

Library for encrypting mastercard api requests in postman

Usage

In postman :

  • Copy the contents of the minified bundle as an environment variable encryptionScript .
  • Set the required environment variables for encryption
  • Set this as a pre-request script:
    eval(pm.environment.get("encryptionScript"));
    // "jwe" for JWE encryption and "mce" for Mastercard encryption
    encryptRequest("jwe", pm); 
  • Run the request.

Development

Requires
Node 18+
npm 9+
Run unit tests
npm test
Lint
npm run lint
Fix linting errors
npm run lint:fix 
Build the minified bundle file
npm run minify

The output will be created in the dist/ directory.

Contributing

This repository follows Angular Commit Message Conventions and commit messages should follow this format.

If you're unfamiliar with this, instead of git commit, run:

npm run commit  

and you'll get an interactive shell which will format your commit message. Example:

git add file1 file2  
npm run commit

For more details, see CONTRIBUTING

Release Process

On PR merge, release is handled automatically by the semantic-release tool, which will :

  • Update the version in package.json
  • Update the CHANGELOG using the commit messages
  • Create a github release with the minified file.

postman-encryption-lib's People

Contributors

joseph-neeraj avatar semantic-release-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.