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. Algorithms
  4. Design Secrete key generation program or Algorithm

Design Secrete key generation program or Algorithm

Scheduled Pinned Locked Moved Algorithms
csharpdesignalgorithmssecurityregex
2 Posts 2 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.
  • D Offline
    D Offline
    Durga Prasad Chauhan
    wrote on last edited by
    #1

    <pre lang="C#">
    Adam works in the in networking security cell. He wants to generate secret keys
    following a pattern. The pattern consists of the characters X and Y.
    where X means increasing and Y means decreasing. Help him devise an
    algorithm to generate the secret key which is the minimum number encoded
    following that pattern. Digits from 1-9 and digits can’t repeat.

    Sample Input: Sample Output:

    X 12
    YXYX 21435
    YYXYYXXY 321654798
    </pre>

    S 1 Reply Last reply
    0
    • D Durga Prasad Chauhan

      <pre lang="C#">
      Adam works in the in networking security cell. He wants to generate secret keys
      following a pattern. The pattern consists of the characters X and Y.
      where X means increasing and Y means decreasing. Help him devise an
      algorithm to generate the secret key which is the minimum number encoded
      following that pattern. Digits from 1-9 and digits can’t repeat.

      Sample Input: Sample Output:

      X 12
      YXYX 21435
      YYXYYXXY 321654798
      </pre>

      S Offline
      S Offline
      Sascha Lefevre
      wrote on last edited by
      #2

      Your homework should serve the purpose that you learn something. And that something isn't supposed to be how to get other people to doing your homework for you. Your assignments will get more difficult over time - so if you don't start doing them yourself now you'll never be able to. So sit down, think about it and try something. If you then encounter a specific problem, feel free to ask - that's the idea of these forums.

      If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

      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