Questions tagged [passphrase]

A passphrase is a sequence of words or other text used to control access to a computer system, program or data. Passphrases are often used to control both access to, and operation of, cryptographic programs and systems.

137 questions
6
votes
6 answers

Java passphrase encryption

I'm trying to learn how to do passphrase-based encryption with Java. I'm finding several examples online, but none (yet) on Stack Overflow. The examples are a little light on explanation for me, particularly regarding algorithm selection. There…
skiphoppy
  • 83,104
  • 64
  • 169
  • 214
6
votes
1 answer

Provide passphrase to git in bash script

How do I provide passphrase with git fetch/pull in bash script. I really need to do it in a bash script, without using ssh-add or something like that. is it possible?
GALIAF95
  • 479
  • 1
  • 7
  • 21
5
votes
2 answers

Emacs epa mode: pinentry fails to encrypt and save file

I'm attempting to use epa mode and org mode in emacs as laid out by this article. I'm attached to the computer using a screen session and ssh. I therefore needed to change /usr/bin/pinentry to point to /usr/bin/pinentry-curses as…
N Klosterman
  • 1,151
  • 13
  • 22
4
votes
2 answers

How can I force GPG to accept input from STDIN instead of trying to open a file?

I am trying to incorporate GPG clear-signing of text in a string in a PHP script. I can cause GPG to encrypt text in a string like this: $encrypted = shell_exec("echo '$text' | gpg -e -a -r foo@bar.com --trust-model always"); and that works…
Axinar
  • 43
  • 1
  • 3
4
votes
0 answers

How is a DES key generated from passphrase in C?

(Not to be confused with the DES algorithm subkey generation) (edit: more examples) Explanation of problem: I'm doing this as part of a school assignment where I'm required to recode parts of OpenSSL in C, specifically those pertaining to PKI…
izcet
  • 49
  • 2
  • 6
4
votes
1 answer

What are the best practice to use passphrase in a batch?

I'm on a Windows 2003 server and I need to write a batch file to automate decryption using GnuPG. The decryption command requires a passphrase to use the private key. Here are some workable options that don't entirely satisfy me : echo…
Myobis
  • 1,258
  • 14
  • 26
3
votes
3 answers

Failures caused by logrotate on Apache 2 with passphrase protected SSL key

I have an Apache 2 installation on Debian with mod_ssl installed. The server private key is protected by a passphase that needs to be entered on start-up. The error and access logs are subject to logrotate on a weekly basis. I find that Apache…
Mike Tunnicliffe
  • 10,204
  • 3
  • 28
  • 46
3
votes
1 answer

Add Pass phrase to environment variables (bashrc) in order to be used when restarting Apache server

Currently I'm using "SSLPassPhraseDialog exec:/path/to/pass-phrase.sh" on the /etc/apache2/mods-enabled/ssl.conf file #!/bin/bash echo "mypassphrase" Everything works fine when I restart or start my apache server. I tried to add my passphrase to my…
3
votes
1 answer

How to automate PEM pass phrase when generating OpenSSL cert?

I am needing to automate the generation of self signed SSL certificates for testing purposes for a project. I am generating a certificate and key using the following OpenSSL command: > openssl req -x509 -newkey rsa:2048 -keyout myserver.key -out…
Jake Wilson
  • 78,902
  • 83
  • 230
  • 344
3
votes
3 answers

How to avoid always entering passphrase for id_rsa on terminal startup?

Currently every time I start up terminal I get prompted the following: Last login: Mon Nov 28 21:32:16 on ttys000 Agent pid 2733 Enter passphrase for /Users/my_name/.ssh/id_rsa: Could you please guide me on how I can avoid having to enter a…
HosseinK
  • 877
  • 2
  • 10
  • 16
3
votes
2 answers

Generate RSA key pair using WebCrypto API and protect it with passphrase

title says it all. I was wondering how do I generate RSA key pair using WebCrypto API and how do I secure it with a passphrase so I can store it in a database.
3
votes
2 answers

regex for passphrase

I'm a newbie to regex and trying to create a regex to validate pass phrases. I would like to validate that the pass phrase has: n number of words or more words should be separated by spaces words, each with n characters or more a number in at least…
jmm312
  • 622
  • 1
  • 6
  • 17
2
votes
5 answers

MonoDevelop 2.8 Beta 2 on OSX. Struggling with Git

Is there anyone who uses GitHub with MD for MonoTouch? I set-up everything as this instruction says: http://help.github.com/mac-set-up-git/ Created a repo, committed some stuff into it... And then in MD I'm trying to check out stuff and then it…
iLemming
  • 30,282
  • 53
  • 181
  • 302
2
votes
2 answers

gpg decryption giving error in LINUX "can't query passphrase in batch mode"

Hi im using gpg to decrypt a file in linux, im using shell_exec("gpg --batch --passphrase-file $passphrase_file -d $encrypted_file"); to decrypt the file, but im getting the following errors. gpg: gpg-agent is not available in this session gpg:…
Rider
  • 663
  • 1
  • 10
  • 16
2
votes
1 answer

Force ssh private key to use passphrase everytime

I have some clients with ssh-key based access to servers with passphrase. On clients the passphrase is prompted only for the first time or when client system are rebooted. Is it possible to force clients to enter passphrase everytime they try to…
user465465
  • 419
  • 3
  • 11
  • 25
1
2
3
9 10