Git Product home page Git Product logo

slovakeiddecryptiontool's Introduction

Slovak eID Decryption tool

Slovak eID Decryption tool is util for encryption certificate extraction, from Slovak eID card, encrypt any file using encryption certificate and decrpt encrypted file using Slovak eID card.

This program use AES-256 CBC for file encryption and RSA 3072 with RSA PKCS1 padding for wrapping AES key (Slovak eID support RSA 3072 and PKCS1 padding).

This project aim to education PKCS#11 standard and using using Slovak eID.

Used:

  • .Net Core 2.1 - multi-platform,
  • PKCS#11 Interop for communication with eID "driver" (or other hardware token),
  • commandline for parsing command line arguments.

Prerequisites

  • .Net Core SDK 2.1 for build,
  • Slovak eID card,
  • Driver for smart card reader (from Slovensko.sk),
  • Application eID klient (from Slovensko.sk).

Usage

Bob has Slovak eID card, Alice wants to send SeecritFile.zip to Bob.

Drag Racing

Container structure

Offset (bytes) Size (bytes) Description
0 8 ASCII string "SkEidDT_"
8 2 Container version (1)
10 4 Reserved (must contain zeroes)
14 4 Key type (RSA2048, RSA3072, RSA4096)
20 8 Size of encrypted data
28 40 Encrypted certificate thumbprint as ASCII string
68 [by Key type] Encrypted AES-256 key.
? 16 IV for AES-256
? ? Encrypted section data

Encrypted section data structure

Offset (bytes) Size (bytes) Description
0 16 Random seed
16 4 Size of additional padding size
20 4 Size of file name
24 ? Random data section
? ? Name of file as UTF-8 string
? ? Data

Disclaimer

This project is technology demo. For real secrets use trusted programs e.g. VeraCrypt.

Read more

  1. https://hohnstaedt.de/xca/
  2. Slovensko.sk

slovakeiddecryptiontool's People

Contributors

harrison314 avatar

Watchers

 avatar  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.