Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Implementing Security in C# Through Any Hardware

Implementing Security in C# Through Any Hardware

Scheduled Pinned Locked Moved C#
securitycsharpcomhardwaretutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hemant Mane
    wrote on last edited by
    #1

    Hello All, I am student from India. Right now i am working on one on course project in C# and COM+ components.In that project i want to implement security through any hardware like floppy or CD. I try the 'VOL' command from command line to get the hardware Volume serial number like Floppy or CD. I i notice one thing that it is not uniq. If u make ISO of that Floppy or CD and write it then the Volume serial number will be the same. So there is no uniqueness in this. I want to implement security in my code from any hardware. How can i implement that one. If any one have good Knowledge about that Please mail me at Hemant_Mane2003@yahllo.com. And if there is more secure way than the encryption and decryption please sent me that stuff or guide me about that. Thanking You. (Hemant Uttam Mane)

    H P 2 Replies Last reply
    0
    • H Hemant Mane

      Hello All, I am student from India. Right now i am working on one on course project in C# and COM+ components.In that project i want to implement security through any hardware like floppy or CD. I try the 'VOL' command from command line to get the hardware Volume serial number like Floppy or CD. I i notice one thing that it is not uniq. If u make ISO of that Floppy or CD and write it then the Volume serial number will be the same. So there is no uniqueness in this. I want to implement security in my code from any hardware. How can i implement that one. If any one have good Knowledge about that Please mail me at Hemant_Mane2003@yahllo.com. And if there is more secure way than the encryption and decryption please sent me that stuff or guide me about that. Thanking You. (Hemant Uttam Mane)

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      See my article, Using XML Digital Signatures for Application Licensing[^]. You can include anything you want. You could, for example, using WMI to easily get the volume ID of the system partition (the partition from which the current OS is running) and have them send that as part of a request which you sign and send back. In your application - besides checking the validity of the license - you get the volume ID again and verify that the two are the same.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      • H Hemant Mane

        Hello All, I am student from India. Right now i am working on one on course project in C# and COM+ components.In that project i want to implement security through any hardware like floppy or CD. I try the 'VOL' command from command line to get the hardware Volume serial number like Floppy or CD. I i notice one thing that it is not uniq. If u make ISO of that Floppy or CD and write it then the Volume serial number will be the same. So there is no uniqueness in this. I want to implement security in my code from any hardware. How can i implement that one. If any one have good Knowledge about that Please mail me at Hemant_Mane2003@yahllo.com. And if there is more secure way than the encryption and decryption please sent me that stuff or guide me about that. Thanking You. (Hemant Uttam Mane)

        P Offline
        P Offline
        partyganger
        wrote on last edited by
        #3

        Because .NET uses the IL (intermediate Language), it can always be backwards engineered. You can use an obfuscator to make the code in the resulting executables less readable, but at one point the framework still needs the IL from the file... RemoteSoft has created a tool called Protector that creates C++ like files which are very dificult to backwards engineer. But that tool costs $1899 for 5 developers..... If you just want to use crypto in your app, you could try this book: .NET Security and Cryptography, by Peter Thorsteinson and G. Gnana Arun Ganesh. It covers all aspects of Crypto available in .NET and also the security model.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups