J’héberge depuis peu le site d’une amie graphiste. Son entreprise propose différents types de créations graphiques (plaquettes, jaquettes CD/DVD, encarts publicitaires, logos, etc.). Le travail effectué jusqu’à présent vaut réellement le détour, et pour preuve: elle compte déjà un centre de recherche de l’INRA parmis ses clients. Il est d’ailleurs prévu que Parad1gm fasse appel à ses services pour dessiner le nouveau logo du groupe, ce qui nous évitera de tomber dans tous ces vieux clichés de logos de groupe de métal (le ciel étoilé, la typo manuscrite à la Nightwish…).
Misc
OpenSSL file encryption 101
by Gradew on Jun.28, 2009, under Misc
Crypting/decrypting a file can be done easily with OpenSSL.
First, you need to generate an RSA key pair; the public key will be used for encryption and the private one will be used to decrypt.
- Generate the keypair (2048 will be the size used in this example):
openssl genrsa -out private.key 2048
openssl rsa -pubout -in private.key -out public.key
- Encrypt the file (test.txt):
openssl rsautl -encrypt -inkey public.key -pubin -in test.txt -out test.encrypted
- Decrypt the file:
openssl rsautl -decrypt -inkey private.key -in test.encrypted -out test.decrypted
Notes:
- the size of the encrypted file will grow by a few bytes; an RSA buffer has a size of (S/8), where S is the bit size of the key. The size of an encrypted file will therefore be aligned on buffers of (S/8) bytes (e.g. 256 bytes for a 2048-bit key)
- given the pseudorandom nature of encrypted contents, an encrypted file cannot be compressed. If you wish to compress the file, do it before you encrypt it.
L’Attitude 49: création graphique et communication visuelle
by Gradew on Jun.22, 2007, under Misc
English