GPG y Claves
Encripta un fichero usando una clave local, con ID 12345678D
gpg --encrypt --sign --armor -r 12345678D /tmp/aa.txt
Para des-encriptarlo
gpg aa.txt.asc
Para encriptar con una clave simetrica
gpg -a --symmetric --cipher-algo AES256 bb.txt
hay que escribirla luego
Algoritmos
gpg --help
gpg (GnuPG) 1.4.18
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
Length of SSH KEY
ssh-keygen -l
Enter file in which the key is (/root/.ssh/id_rsa):
2048 99:19:91:bc:59:ce:a0:57:b1:b5:76:1d:de:b1:bc:bf /root/.ssh/id_rsa.pub (RSA)
http://www.slashroot.in/secure-shell-how-does-ssh-work
http://en.kioskea.net/contents/144-cryptography-secure-shell-ssh-protocol
Comentarios
Publicar un comentario