gnupg

Sign git commits with GPG

霸气de小男生 提交于 2019-11-27 11:31:25
问题 Is there a way to sign git commits with gpg? It's so easy with tags (using -s instead of -a ), it seems there would be a similar function for commits. 回答1: git commit -S (requires git >= 1.7.9). 回答2: Note: Adding the -S option all the time can be cumbersome. In git 2.0 and later, you can add a config which will take care of that option for you. See commit 2af2ef3 by Nicolas Vigier (boklm): Add the commit.gpgsign option to sign all commits If you want to GPG sign all your commits, you have to

How to do PGP in Python (generate keys, encrypt/decrypt)

柔情痞子 提交于 2019-11-27 11:21:45
I'm making a program in Python to be distributed to windows users via an installer. The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it. So I need to find a Python library that will let me generate public and private PGP keys, and also decrypt files encrypted with the public key. Is this something pyCrypto will do (documentation is nebulous)? Are there other pure Python libraries? How about a standalone command line tool in any language? All I saw so far was GNUPG but installing that on Windows does stuff to the registry and throws

Batch file script to remove special characters from filenames (Windows)

你离开我真会死。 提交于 2019-11-27 02:53:19
问题 I have a large set of files, some of which contain special characters in the filename (e.g. ä,ö,%, and others). I'd like a script file to iterate over these files and rename them removing the special characters. I don't really mind what it does, but it could replace them with underscores for example e.g. Störung%20.doc would be renamed to St_rung_20.doc In order of preference: A Windiws batch file A Windows script file to run with cscript (vbs) A third party piece of software that can be run

gpg encrypt file without keyboard interaction [closed]

可紊 提交于 2019-11-27 00:25:27
问题 I am running next command within a crontab to encrypt a file and I don't want a keyboard interaction echo "PASSPHRASE" | gpg --passphrase-fd 0 -r USER --encrypt FILENAME.TXT but I have this answer: gpg: C042XXXX: There is no assurance this key belongs to the named user pub 40XXX/C042XXXX 2012-01-11 Name LastName. (comment) <user@email.com> Primary key fingerprint: XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX Subkey fingerprint: XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX It is NOT

Encrypt files using PGP in PHP?

蓝咒 提交于 2019-11-26 18:46:22
I want to use PGP encryption to encrypt a CSV files, I am generating through a PHP script and then send that file to client via email. Client will give me the encryption key, which I need to use for encryption files. I Googled about PGP and found it is Pretty Good Privacy, also I found OpenPGP http://www.openpgp.org/ and GnuPG http://www.gnupg.org/ What are these two types of PGP? and which one should I use? Also how to encrypt a files using PGP in PHP with the key that my client will provide? I have heard this term first time, can anyone please help in understanding this and implementing this

How to do PGP in Python (generate keys, encrypt/decrypt)

拥有回忆 提交于 2019-11-26 15:27:55
问题 I'm making a program in Python to be distributed to windows users via an installer. The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it. So I need to find a Python library that will let me generate public and private PGP keys, and also decrypt files encrypted with the public key. Is this something pyCrypto will do (documentation is nebulous)? Are there other pure Python libraries? How about a standalone command line tool in any

Encrypt files using PGP in PHP?

青春壹個敷衍的年華 提交于 2019-11-26 09:00:03
问题 I want to use PGP encryption to encrypt a CSV files, I am generating through a PHP script and then send that file to client via email. Client will give me the encryption key, which I need to use for encryption files. I Googled about PGP and found it is Pretty Good Privacy, also I found OpenPGP http://www.openpgp.org/ and GnuPG http://www.gnupg.org/ What are these two types of PGP? and which one should I use? Also how to encrypt a files using PGP in PHP with the key that my client will provide

Is there a way to “autosign” commits in Git with a GPG key?

人盡茶涼 提交于 2019-11-26 08:39:22
问题 Is there an easy way to make Git always signs each commit or tag that is created? I tried it with something like: alias commit = commit -S But that didn\'t do the trick. I don\'t want to install a different program to make this happen. Is it doable with ease? Just a side question, maybe commits shouldn\'t be signed, only tags, which I never create, as I submit single commits for a project like Homebrew, etc. 回答1: Note: if you don't want to add -S all the time to make sure your commits are

encryption/decryption with multiple keys

痞子三分冷 提交于 2019-11-26 07:55:40
问题 Is it possible to encrypt data, such that it can be decrypted with several different keys? Example: I\'ve encrypted data with key1, but I want to be able to decrypt with keys 2, 3, and 4. Is this possible? 回答1: GnuPG does multi-key encryption in standard. The following command will encrypt doc.txt using the public key for Alice and the public key for Bob. Alice can decrypt using her private key. Bob can also decrypt using his private key. gpg --encrypt --recipient alice@example.com \ -