Giter VIP home page Giter VIP logo

cdoc4j's People

Contributors

andresrosenthal avatar ivomattus avatar jorgenheinsoo avatar klugeannika avatar kristelmerilain avatar metsma avatar naare avatar siimsuu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cdoc4j's Issues

Create possibility to decrypt container in memory and introduce MIME type value in the DataFile object

  • Create possibility to decrypt container in memory
    Example of the decrypt return type:
    ListOf(
    DataFile{
    String name,
    long size,
    String mimeType, // NB! Should be introduced. Mime type of the file was added to the container
    Date creationDate, // creation date of the file was added to the container (if possible)
    byte[] body; //
    });

Proposal: We can create 2 types of DataFile objects, one is read once, and another is read multiple times.

Decryption of CDOC 1.0 container encrypted by JDigiDoc 3.12.0-785 results with broken datafile content

Decryption of CDOC 1.0 container encrypted by JDigiDoc 3.12.0-785 results with broken datafile content. E.g decryption works without errors, however the org.openeid.cdoc4j.DataFile content differs from the expected.
The decryption of the same cdoc container using JDigiDoc 3.x library works fine.

CDOC Library used for decryption: org.open-eid.cdoc4j 1.3.

Container and algorithm details:

...
</denc:CipherValue></denc:CipherData>denc:EncryptionProperties<denc:EncryptionProperty Name="LibraryVersion">JDigiDoc|3.12.0-785</denc:EncryptionProperty><denc:EncryptionProperty Name="DocumentFormat">ENCDOC-XML|1.0</denc:EncryptionProperty><denc:EncryptionProperty Name="Filename">XX-response.xml</denc:EncryptionProperty><denc:EncryptionProperty Name="OriginalMimeType">text/xml</denc:EncryptionProperty><denc:EncryptionProperty Name="OriginalSize">8843</denc:EncryptionProperty></denc:EncryptionProperties></denc:EncryptedData>

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.