Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

UUID format conversion

Help
davisj
2014-03-18
2014-03-18
  • davisj
    davisj
    2014-03-18

    I'm working with an XML KeePass export file. I need to convert between UUIDs found in this file and UUIDs found in the user interface (in order to add custom metadata fields that are stored in an external file, keyed by UUID). These fields look like 22-char(plus '==') base64 and 32-char hex strings respectively:
    xxxxxxxxxxxxxxxxxxxxxx== (132 bit, ignoring '==', 6 * 22)
    hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh (128 bit, 4 * 32)

    The bit counts don't work out quite right, so I'm hoping someone could tell me how to convert between these UUID formats.

    Thanks.

    ======================
    Edit:
    Never mind. I see now that the '==' indicates padding.
    Sorry for the trouble.
    ======================

     
    Last edit: davisj 2014-03-18