Coder Social home page Coder Social logo

opensc-random's Introduction

opensc-random

Random generation and entropy gathering utilities for OpenSC. License: LGPL

This provides two more utilities for OpenSC:

  1. opensc-random: Output random data from a smartcard to stdin

    Usage:

    A) Write a specific number of random bytes to stdout:

    $ opensc-tools 48 | base64 mhM4rNRLci0QEtAXfRree+htPjHemieUKH9L5qzvmee+JeNtU2KelK6Hi91H1A4s

    B) Continuously write to stdout (warning, may be very slow!):

    $ opensc-tools | dd of=random.dat bs=1 count=4096 4096+0 records in 4096+0 records out 4096 bytes (4.1 kB) copied, 132.724 s, 0.0 kB/s

  2. opensc-entropy: Feed entropy to the kernel from a smart card. (must be root)

A simple wrapper around libopensc for retrieving random data from a smart card HWRNG and feeding it into the kernel random pool using an ioctl. This makes it available to any application using /dev/random.

Building

A simple makefile is provided (no autoconf/automake). You should be able to build by simply running "make". Install by copying the two binaries into your path.

You will need OpenSC installed on your system. Development headers for 0.12 are included in this project.

Fedora 17 x86_64 does not symlink libopensc.so.3 to libopensc.so. If you receive an error that the linker cannot find opensc, uncomment the alternate LIBOPENSC line in the Makefile. You may need to alter this depending on your distribution.

opensc-random's People

Watchers

 avatar  avatar  avatar

Forkers

ief sehraf

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.