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.

151 questions
8
votes
1 answer

Java git client using jgit

I am having some difficulties with a git client written in java. I am using the jGit library to connect through ssh on the git server. The problem is that i don't know how to specify the path to the private key and the passphrase for it. I couldn't…
azertys
  • 132
  • 1
  • 8
8
votes
2 answers

How to make eclipse remember ssh key passphrase?

I'm using Egit with Eclipse to use git and access github. Everything is working fine but one thing that I wish to omit to type id_rsa key passphrase everytime I push my commit to github. I'm asked to enter passphrase each time I restart Eclipse and…
TheKojuEffect
  • 20,103
  • 19
  • 89
  • 125
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
  • 97,646
  • 72
  • 174
  • 218
5
votes
1 answer

Git asking for SSH passphrase every time, while SSH gets it from agent

I am on a Windows 10 Pro machine trying to do a git pull without having to enter my SSH passphrase every time. The key pair was generated, with a passphrase, and the public key was successfully added to my GitLab account. In the 'Services' GUI I can…
WBT
  • 2,249
  • 3
  • 28
  • 40
5
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.
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,231
  • 14
  • 23
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's 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
  • 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
  • 1
  • 7
4
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
  • 1,247
  • 4
  • 13
  • 18
4
votes
2 answers

SSHing from AWS Instance to AWS Instance using .pem asks for passphrase

I am trying to ssh/scp into my AWS instance however it always asks for a passphrase for the .pem file even though there wasn't one set. I have spent hours researching and I have tried everything. Its chmod'ed 400 ( tried 600 and 777 too -no luck)…
Azibiz
  • 59
  • 2
  • 3
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,674
  • 3
  • 31
  • 46
3
votes
2 answers

GPG not prompting for passphrase

So up until yesterday gpg was working all fine. But today, it doesn't prompt for passphrase, I just get an empty blinking command line. I'm using gpg for signing git commits. I thought the problem was with git. But no, if I do echo "test" | gpg…
Rafael Madriz
  • 51
  • 1
  • 6
3
votes
3 answers

Receiving "No key available with this passphrase" with LUKS

My laptop has an encrypted disk. After an apt upgrade and some hours later a force shutdown my passphrase doesn't decrypt my disk anymore. I booted from a debian live usb stick and tried several things: Can I decrypt the partition with my…
Enthusiasmus
  • 303
  • 2
  • 9
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

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,347
  • 16
  • 27
1
2
3
10 11