Giter Club home page Giter Club logo

client-encryption-ruby's People

Contributors

aenand avatar danny-gallagher avatar ech0s7r avatar jaaufauvre avatar talha-api avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gadimbaylisahil

client-encryption-ruby's Issues

JWE decryption has trailing characters Description

Bug Report Checklist

  • Have you provided a code sample to reproduce the issue?
  • Have you tested with the latest release to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?

Description
The JWE decryption service with AES 128Bit-CBC and RSA-OAEP-256 fails to properly decrypt the data. It results in having trailing characters that causes the JSON parser to return a string not a hash and causes issues downstream when attempting to consume the data.

To Reproduce
Call decrypt with AES 128Bit-CBC and RSA-OAEP-256

Expected behavior
The decryption service should return a valid hash with no trailing characters.

Additional context
We are trying to use this as part of the Click to Pay process.

Suggest a fix/enhancement
I have a PR up to remove padding=0 which seems to solve the problem though I am not an expert in this field by any means.

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.