Giter VIP home page Giter VIP logo

keygenerator's Introduction

Key Generator

#Description

This is example realization of key generator, which was a task in Binary Studio Academy 2013 for C++ group.

Key generator should generates keys by few rules:

  • key is a set of <letter><number> which is separated by dash;
  • forbidden letters are D, F, G, J, M, Q, V, 0;
  • start key is "A1";
  • terminate set for extending key is "Z9";
  • maximum length of key is 10 groups of <letter><number> sequence.

Key generator function should take key and return incremented key. For example:

"A2-B9" -> "A2-C1"
"B5-Z9" -> "B6-A1"
"Z9-Z9-Z9" -> "A1-A1-A1-A1"

#Sample

Realization is designed to be customized via template arguments of KeyGeneratorImp class. Thus in folder Sample you can find example of customized key generator, which increments binary keys. For example:

"00001111" -> "000010000"

#Environment

Code was written in Eclipse with CDT plugin, so for building you need to import root of repository into your workspace. Project KeyGeneratorTests requires tunned gtest library in system.

keygenerator's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.