====== Create your password card ====== Version 1 is a broken one. It doesn't produce the same value on x86 and x86_64. Version 2 has been tested, on x86, x86_64 and sparc32, and produce the same output for the same input. See [[https://linuxfr.org/~tchetch/28760.html]] It's easy, you put your address email in the, eventually a text (not too long) and go. The email address is not stored or used (in fact you can put any string you want). If you lose your card, just come back here, re-enter your mail address and you'll get the same card.
Your mail :
A text you want :
Unwanted char (to generate default unwanted char, empty the box):
Use version 2 
===== Version 1 ===== It uses a CRC32 of your mail address to seed a pseudo-random number generator which will generate your card. It's still here for people who have generated a card with it. ===== Version 2 ===== Version 2 has PRNG and CRC function embedded. For CRC it uses [[Adler-32|http://en.wikipedia.org/wiki/Adler-32]] as found on wikipedia and for PRNG it uses example shown in ''man 3 rand''. As Adler-32 is said to be not good on "few hundred bytes", the program add 32 times xored (with hand picked values) mail address to calculate the CRC, so for a normal email address it has ~600 bytes of data. ===== Source code ===== * Version 1, passcard.c : [[http://www.tchetch.net/passcard/passcard.c]] * Version 2, passcard2.c : [[http://www.tchetch.net/passcard/passcard2.c]] * PHP Code [[http://www.tchetch.net/passcard/passcard.php.txt]] * On [[http://www.tchetch.net/websvn/listing.php?repname=passcard&path=%2F&sc=0|Subversion]] License is [[http://sam.zoy.org/wtfpl/|WTFPL 2.0]]. ===== Acknowledge ===== * [[http://www.bolay.net|Sylvain Bolay]] for advice and idea * Cédric Schöpfer for advice and idea * All guys on [[http://linuxfr.org|linuxfr]] for comments.