Rev 6 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | daniel-mar | 1 | # OID/DER converter for C and PHP |
2 | |||
9 | daniel-mar | 3 | Current version: [1.3](https://github.com/m9aertner/oidConverter)+viathinksoft12 |
3 | daniel-mar | 4 | |
5 | ## Functionalities |
||
6 | |||
7 | - Encode **absolute** OID in dot-notation (`"2.999.1234"`) into Hex-String (`"06 04 88 37 89 52"`) |
||
9 | daniel-mar | 8 | - Encode **absolute** OID in dot-notation (`"2.999.1234"`) into C-Hex-String (`"\x06\x04\x88\x37\x89\x52"`) |
9 | - Encode **absolute** OID in dot-notation (`"2.999.1234"`) into C-Array (`{ 0x06, 0x04, 0x88, 0x37, 0x89, 0x52 }`) |
||
3 | daniel-mar | 10 | - Encode **relative** OID in dot-notation (`"1234"`) into Hex-String (`"0D 02 89 52"`) |
11 | - Encode **relative** OID in dot-notation (`"1234"`) into C-Hex-String (`"\x0D\x02\x89\x52"`) |
||
9 | daniel-mar | 12 | - Encode **relative** OID in dot-notation (`"1234"`) into C-Array (`{ 0x0D, 0x02, 0x89, 0x52 }`) |
13 | - Decode Hex-Notation (`"06 04 88 37 89 52"` or `"\x06\x04\x88\x37\x89\x52"` or `{ 0x06, 0x04, 0x88, 0x37, 0x89, 0x52 }`) into dot-notation (`"2.999.1234"`) |
||
3 | daniel-mar | 14 | |
15 | ## Acknowledgements |
||
16 | |||
6 | daniel-mar | 17 | Object ID converter by [Matthias Gärtner](http://www.rtner.de/software/oid.html), 06/1999. Converted to plain 'C' 07/2001. |
18 | |||
3 | daniel-mar | 19 | Heavily improved version by Daniel Marschall, ViaThinkSoft June-July 2011. |
20 | |||
21 | Translated from C to PHP by Daniel Marschall, ViaThinkSoft. |
||
22 | |||
6 | daniel-mar | 23 | September 2022: Synchronized to upstream version 1.3 (added `-c` argument). |
24 | |||
25 | ## License |
||
26 | |||
27 | Work of original author: "Freeware - do with it whatever you want. Use at your own risk. No warranty of any kind." |
||
28 | |||
29 | Work of Daniel Marschall (PHP): Licensed under the Apache 2.0 license |