A simple reader and writer for reading and writing ASN.1 encoded bytes.
This project includes the SimpleASN1Reader
and SimpleASN1Writer
module, written in Swift and featuring a reader and writer that can be used for reading and writing ASN.1 encoded bytes.
Int
, String
etc.)Stream
The above items are deliberately not supported to keep both the reader and the writer simple and focused. In addition, the assumption has been made that the last three items are not commonly used. So, it is not expected that one of these items will be supported at some time in the future.
simple-asn1-reader-writer
is a SwiftPM project and can be built and tested using these commands:
$ swift build
$ swift test
To depend on simple-asn1-reader-writer
, put the following in the dependencies
of your Package.swift
:
.package(url: "https://github.com/nextincrement/simple-asn1-reader-writer.git", from: "0.1.0"),
See the rsa-public-key-importer-exporter project for an example of how the reader and writer can be used.
Your interest in this project is highly appreciated. However, contributions might not be accepted for the following reasons:
Some contributions may get accepted if for example a bug should be fixed that prevents parts of the code from being used in a common situation.
A Laymanβs Guide to a Subset of ASN.1, BER, and DER
To the following project, which served as reference and inspiration during development:
simple-asn1-reader-writer
is licensed under the MIT License. See LICENSE for details.
link |
Stars: 7 |
Last commit: 4 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics