Code Monkey home page Code Monkey logo

cpfx's Introduction

Hi 👋!

const { profile } = require("github");
console.log(profile);
About me
------------------------------------------
Name: Nikolai Konovalov aka li0ard
Age: null
Languages:  🇬🇧/🇺🇸 English (B2), 🇷🇺 Russian (native), 🇺🇦 Ukrainian (B1)
Programming languages:
- JS
- Python
- Some PHP and Go
const { stats } = require("github-readme-stats");
stats.visualize()

cpfx's People

Contributors

li0ard avatar tsunamaru avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

cpfx's Issues

Баг из pfx (импортированого из КриптоПро) в pem

File "/home/user/cash-api/cpfx/cpfx.py", line 92, in
result = CPBlob().decode(result)[0]
File "/home/ipoliashenko/cash-api/cpfx/pyderasn.py", line 1922, in decode
result = next(self.decode_evgen(
File "/home/user/cash-api/cpfx/pyderasn.py", line 1966, in decode_evgen
for result in self._decode(
File "/home/user/cash-api/cpfx/pyderasn.py", line 6440, in _decode
raise TagMismatch(
pyderasn.TagMismatch: CPBlob

pyderasn.DecodeError: CPBlob remaining data

При попытке выполнить декодировку pfx для эцп выпущенного тестовым УЦ КриптоПро падает с ошибкой:

CryptoPro PFX Decoder by li0ard
Введите пароль:
SALT = 52259485af47d3c358c7ba66a74c37ed
ITERS = 2000
Прогресс: |**************************************************| 100.0% Завершено
KEY = 27458cabecb90b08177d58b85b157ffe2b2ae8829dc3260590ebbecb633dbc7f
IV = 52259485af47d3c3
Traceback (most recent call last):
File "cpfx.py", line 91, in
result = CPBlob().decode(result)[0]
File "/usr/local/lib/python3.8/dist-packages/pyderasn-9.3-py3.8.egg/pyderasn.py", line 1922, in decode
File "/usr/local/lib/python3.8/dist-packages/pyderasn-9.3-py3.8.egg/pyderasn.py", line 1966, in decode_evgen
File "/usr/local/lib/python3.8/dist-packages/pyderasn-9.3-py3.8.egg/pyderasn.py", line 6609, in _decode
pyderasn.DecodeError: CPBlob remaining data

Файл приложил.
gost.pfx.zip

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.