Giter Site home page Giter Site logo

datapower-jwe-encryption-decryption's Introduction

Encrypt & Decrypt specific parts of your JSON using GatewayScript

If you're using IBM DataPower Gateway and need to asymmetric encrypt or decrypt just a part of a json object, it might be complicated. This two GatewayScripts will assist you doing that with a minimal effort.

How to use it?

Just drop them on your processing rule, configure the relevant parameters and you're good to go.

Encryption Parameters (for jwe-encrypt.js)

  • certificate: a name of a valid Crypto Certificate object to be used for the encryption.
  • encAlg: The JWE encryption algorithm. supported values are:
    - A128CBC-HS256 (default)
    - A192CBC-HS384
    - A256CBC-HS512
    - A128GCM
    - A192GCM
    - A256GCM
  • keyMgmtAlg: The JWE key management algorithm. supported values are:
    - RSA1_5 (default)
    - RSA-OAEP
    - RSA-OAEP-256
  • outputFormat: The JWE encryption output format. supported values are:
    - compact (default)
    - json
    - json_flat
  • fields: Comma separated values of the field-names you want to encrypt.

Decryption Parameters (for jwe-decrypt.js)

  • key: a name of a valid Crypto Key object to be used for the decryption.
  • encAlg: The JWE encryption algorithm. supported values are:
    - A128CBC-HS256 (default)
    - A192CBC-HS384
    - A256CBC-HS512
    - A128GCM
    - A192GCM
    - A256GCM
  • keyMgmtAlg: The JWE key management algorithm. supported values are:
    - RSA1_5 (default)
    - RSA-OAEP
    - RSA-OAEP-256
  • inputFormat: The JWE decryption input format. supported values are:
    - compact (default)
    - json
    - json_flat
  • fields: Comma separated values of the field-names you want to decrypt.

datapower-jwe-encryption-decryption's People

Contributors

bmelad avatar

Watchers

 avatar

datapower-jwe-encryption-decryption's Issues

Encript-decryp

Friend, I have a question, if I want to encrypt or decrypt a field but it is in a deeper level, how should I pass the field name parameter? example I want to encrypt the "NameEmployee" field of the following json

{
"Employees":{
"Info":{
"NameEmployees":"xxxx"
}
}
}

¡¡Thanks for your help!!

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.