Basis for Key Generator

At the moment this is not completed. Also I would like to implement a
prime number generator in the future.