StN (String to Number) algorithm

Go back Parent node: Encoding algorithms (1.3.6.1.4.1.37476.3.2.3)

Technical information

Dot notation: 1.3.6.1.4.1.37476.3.2.3.1
ASN.1 notation: { iso(1) identified-organization(3) dod(6) internet(1) private(4) enterprise(1) 37476 specifications(3) algorithm(2) encoding(3) stringToNumber(1) }
OID-IRI notation: /ISO/Identified-Organization/6/1/4/1/37476/Specifications/Algorithm/Encoding/StringToNumber
WEID notation: weid:pen:SX0-3-2-3-1-9
DER encoding: 06:0C:2B:06:01:04:01:82:A4:64:03:02:03:01

Description

StN (String to Number) algorithm

The StN (String to Number) algorithm works as follows:
If the input string is empty, the resulting number will be 99.
If the input string is not empty, then it will be
encoded using UTF-8 and finally encoded with Base64.
Every Base64 will be encoded to a two digit decimal number.
'A' encodes to 00, 'B' encodes to 01, ...,
'/' encodes to 63, '=' encodes to 64
All numbers will be concatenated.
Example:
'test' will encode to '2906215129006464'
Using the StN algorithm, every string, or identifier respectively,
can be mapped into the OID tree (but the client must use
BigInteger to handle the OID, or read the OID as String
instead of interprete each arc as integer).
The advantage in comparison to name based Universally
Unique Identifiers (UUIDs), which can be
mapped to the OID tree into arc 2.25 is, that the OID
can be converted back to its original string.

Registration Authority

ViaThinkSoft
E-Mail: oidra@viathinksoft.de
Daniel Marschall
ViaThinkSoft
Germany

Subordinate objects

ID Base36 ASN.1 IDs (comma sep.) IRI IDs (comma sep.) RA Comment Created Updated
No items available

Alternative Identifiers

IdentifierDescription
aid:D276000186B20005005E3AD62081CF4B
(No PIX allowed)
OIDplus Information Object Application Identifier (ISO/IEC 7816) More information
guid:005e3ad6-401d-8000-a6d3-771fbc1f9a39OIDplus Information Object Custom UUID (RFC 9562) More information
guid:ec762f5a-db82-3aa8-a994-cbb7b366f9fbName based version 3 / MD5 UUID with namespace UUID_NAMEBASED_NS_OID
guid:bc23a763-fcc4-51a3-b018-004c7e325e9eName based version 5 / SHA1 UUID with namespace UUID_NAMEBASED_NS_OID
mac:32-C4-A0-81-CF-4BOIDplus Information Object MAC address, Unicast (AAI)
mac:33-C4-A0-81-CF-4BOIDplus Information Object MAC address, Multicast (AAI)
weid:pen:SX0-3-2-3-1-9WEID notation More information
x500dn:/​dc=com/​dc=example/​cn=oidplus/​1.3.6.1.4.1.37476.2.5.2.9.4.1=6175446/​1.3.6.1.4.1.37476.2.5.2.9.4.2=545378123OIDplus Information Object X.500 DN

RDAP
OID-IP: Text, JSON, XML (Documentation)
REST API (Documentation)

Share Static link to this page


Deutsch English (USA)
oidplus:system | System
oid: | Object Identifier (OID)
     oid:1.3.6.1.4.1.37476.3.2.3 | -- Encoding algorithms
          oid:1.3.6.1.4.1.37476.3.2.3.1 | -- StN (String to Number) algorithm
guid: | Globally Unique Identifier (GUID)
ipv4: | IPv4 Network Blocks
ipv6: | IPv6 Network Blocks
domain: | Domain Names
fourcc: | Four-Character-Code (FourCC)
aid: | Application Identifier (ISO/IEC 7816)
mac: | MAC adresses (EUI/ELI/AAI/SAI)
php: | PHP Namespaces
x500dn: | X.500 Distinguished Name
urn: | Uniform Resource Name (URN)
oidplus:rest_api_documentation | REST API Documentation
oidplus:login | Login
oidplus:whois | OID-IP / WHOIS
oidplus:com.viathinksoft.freeoid | Register a free OID
oidplus:search | Search
oidplus:resources | Documents and Resources
oidplus:contact | Contact administrator