Simple cryptography

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Hartlén

    #1

    Simple cryptography

    Hi!

    Could someone please point me out in the right direction here.

    I have a 32 character long hex-number, and a 11 digit long "key" and want to
    create a one-way hash number of a not to extensive length (4 digits would be
    perfect).

    Is this doable, and where should I start looking (names of algorithms etc.).
    I want to use the cryptography classes within .NET.

    Thanks in advance!

    / Peter


  • Jeroen

    #2
    Re: Simple cryptography

    I had a hard time doing a fairly simple cryptographic task (coming from
    php, where you just have a simple "string md5(string x)" method). I
    don't dare post my code here, because it's probably not at all decent
    enough to learn anything from it. However, considering your actual
    question:

    You should start at System.Security .Cryptography.

    Hope that helps, even if only a little.

    -Jeroen

    Comment

    • John Timney \(MVP\)

      #3
      Re: Simple cryptography

      theres a simple enough example here




      --
      Regards

      John Timney (MVP)
      VISIT MY WEBSITE:




      "Jeroen" <mercuros@gmail .comwrote in message
      news:1162469709 .326260.186400@ h54g2000cwb.goo glegroups.com.. .
      >I had a hard time doing a fairly simple cryptographic task (coming from
      php, where you just have a simple "string md5(string x)" method). I
      don't dare post my code here, because it's probably not at all decent
      enough to learn anything from it. However, considering your actual
      question:
      >
      You should start at System.Security .Cryptography.
      >
      Hope that helps, even if only a little.
      >
      -Jeroen
      >

      Comment

      • Peter Hartlén

        #4
        Re: Simple cryptography

        Perfect!

        Thanks a lot!


        "John Timney (MVP)" <x_john@timney. eclipse.co.uksk rev i meddelandet
        news:WMidnXdULb q9ctTYRVnyhQ@ec lipse.net.uk...
        theres a simple enough example here
        >

        >
        >
        --
        Regards
        >
        John Timney (MVP)
        VISIT MY WEBSITE:


        >
        >
        "Jeroen" <mercuros@gmail .comwrote in message
        news:1162469709 .326260.186400@ h54g2000cwb.goo glegroups.com.. .
        >>I had a hard time doing a fairly simple cryptographic task (coming from
        >php, where you just have a simple "string md5(string x)" method). I
        >don't dare post my code here, because it's probably not at all decent
        >enough to learn anything from it. However, considering your actual
        >question:
        >>
        >You should start at System.Security .Cryptography.
        >>
        >Hope that helps, even if only a little.
        >>
        >-Jeroen
        >>
        >
        >

        Comment

        Working...