Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    LRSignature 0.1.12

    Download button

    No screenshots available
    Downloads: 171  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jim Klo | More programs
    The Apache License 2.0 / FREE
    September 8th, 2012, 00:57 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    LRSignature description

    Learning Registry resource data digital signature management

    LRSignature is a Python module that allows you to sign and minimally validate Learning Registry envelopes:

    #!/usr/bin/env python

    from LRSignature.sign.Sign import Sign_0_21
    from LRSignature.verify.Verify import Verify_0_21
    import simplejson as json

    envelope = '''
     {
     "_id":"00e3f67232e743b6bc2a079bd98ff55a",
     "_rev":"1-8163d32f6cc9996f2b7228d8b5db7962",
     "doc_type":"resource_data",
     "update_timestamp":"2011-03-14 13:36:04.617999",
     "resource_data":"\\nA chat about America. October and November, 1884.\\nJ. P.\\nUnited States--Description and travel.\\n\\"Printed for private circulation only.\\"\\nElectronic reproduction. Washington, D.C. : Library of Congress, [2002-2003]\\nManchester, Palmer & Howe\\n1885\\ntext\\nhttp://hdl.loc.gov/loc.gdc/lhbtn.12281\\neng\\nUnited States\\n\\n ",
     "keys":["United States--Description and travel.","eng"],
     "submitter_type":"agent",
     "resource_data_type":"metadata",
     "payload_schema_locator":"http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd",
     "payload_placement":"inline",
     "submitter":"NSDL 2 LR Data Pump",
     "payload_schema":["oai_dc"],
     "node_timestamp":"2011-03-14 13:36:04.617999",
     "doc_version":"0.10.0",
     "create_timestamp":"2011-03-14 13:36:04.617999",
     "active":true,
     "publishing_node":"string",
     "resource_locator":"http://hdl.loc.gov/loc.gdc/lhbtn.12281",
     "doc_ID":"00e3f67232e743b6bc2a079bd98ff55a",
     "TOS": {
     "submission_TOS": "http://example.com/tos/unknown",
     "submission_attribution": "unidentified"
     }
     }
     '''
    origJson = json.loads(envelope)
    privateKeyLocation = ["http://www.example.com/example.asc"]
    keyid = "C37C805D164B052C"
    passphrase = "my passphrase"

    signtool = Sign_0_21(keyid, passphrase=passphrase, publicKeyLocations=privateKeyLocation)
    signed = signtool.sign(origJson)

    verifytool = Verify_0_21()
    verified = verifytool.verify(signed)
    assert verified == True


    LRSignature.util module contains functionality to fetch and store public keys into the local PGP keyring.


    Product's homepage

    Requirements:

    · Python
    · GnuPG
    · python-gnupg
    · BitTorrent-bencode

    What's New in This Release: [ read full changelog ]

    · No changes; modified dependency version number for python-gnupgp

      


    TAGS:

    Learning Registry | digital signature | signature management | Learning | Registry | signature

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM