Subversion Repositories oidconverter

Compare Revisions

Regard whitespace Rev 8 → Rev 9

/trunk/README.md
1,14 → 1,16
# OID/DER converter for C and PHP
 
Current version: [1.3](https://github.com/m9aertner/oidConverter)+viathinksoft11
Current version: [1.3](https://github.com/m9aertner/oidConverter)+viathinksoft12
 
## Functionalities
 
- Encode **absolute** OID in dot-notation (`"2.999.1234"`) into Hex-String (`"06 04 88 37 89 52"`)
- Encode **absolute** OID in dot-notation (`"2.999.1234"`) into C-Hex-String (`"\x06\x04\x88\x37\x89\x52"`)
- Encode **absolute** OID in dot-notation (`"2.999.1234"`) into C-Array (`{ 0x06, 0x04, 0x88, 0x37, 0x89, 0x52 }`)
- Encode **relative** OID in dot-notation (`"1234"`) into Hex-String (`"0D 02 89 52"`)
- Encode **absolute** OID in dot-notation (`"2.999.1234"`) into C-Hex-String (`"\x06\x04\x88\x37\x89\x52"`)
- Encode **relative** OID in dot-notation (`"1234"`) into C-Hex-String (`"\x0D\x02\x89\x52"`)
- Decode Hex-Notation (`"06 04 88 37 89 52"` or `"\x06\x04\x88\x37\x89\x52"`) into dot-notation (`"2.999.1234"`)
- Encode **relative** OID in dot-notation (`"1234"`) into C-Array (`{ 0x0D, 0x02, 0x89, 0x52 }`)
- 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"`)
 
## Acknowledgements
 
/trunk/php/OidDerConverter.class.phps
1,7 → 1,7
<?php
 
/*
* OidDerConverter.class.php, Version 1.1; Based on version 1.11 of oid.c
* OidDerConverter.class.php, Version 1.1; Based on version 1.3+viathinksoft11 of oid.c
* Copyright 2014-2022 Daniel Marschall, ViaThinkSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");