passphrase

How to use a custom key in Crypto++

瘦欲@ 提交于 2020-01-06 12:41:07
问题 I have a question referring to the encryption code in this question: Crypto++ encrypt and decrypt in two different c++ programs If I want to use a custom key/iv, how can I do this? 回答1: If I want to use a custom key/iv, how can I do this? Just plug it into a cipher with a mode. There are plenty of modes to choose from, but you should use an authenticated encryption mode like EAX, CCM or GCM. See Category:Mode for discussion of the modes in Crypto++. The code below takes a password or secret,

lftp with key + passphrase? [closed]

元气小坏坏 提交于 2020-01-01 08:22:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm using lftp to send files to a sftp server, but i don't how to connect with key and passphrase. So in sftp, I can do this : sftp -i .ssh/id_rsa.mykey login@my.host.fr Enter passphrase for key '.ssh/id_rsa.mykey': my passphrase here So, how can I using lftp with this connecting method ? 回答1: You must specify

lftp with key + passphrase? [closed]

拥有回忆 提交于 2020-01-01 08:22:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm using lftp to send files to a sftp server, but i don't how to connect with key and passphrase. So in sftp, I can do this : sftp -i .ssh/id_rsa.mykey login@my.host.fr Enter passphrase for key '.ssh/id_rsa.mykey': my passphrase here So, how can I using lftp with this connecting method ? 回答1: You must specify

Java passphrase encryption

拟墨画扇 提交于 2019-12-29 04:54:12
问题 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 seems to be a lot of passing strings around to say what algorithms to use, but little documentation as to where the strings came from and what they mean. And it also seems like the different algorithms may require different implementations of the

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

南笙酒味 提交于 2019-12-22 10:34:52
问题 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 perfectly, with the encrypted text being sent to the $encrypted variable. This proves GNUPGHOME and GNUPG are set up correctly. However, when I try to produce a clear-signed message in the same way with this: $text = "googar"; $signature = exec("echo

Java git client using jgit

偶尔善良 提交于 2019-12-20 20:41:31
问题 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 find any examples in the jGit documentation about what functions i need to call. From what i read the jGit library is using JSch to connect to the server using ssh and JSch supports private keys and passphrases. Does anyone have any experience with

SSH: “Bad passphrase” after generation of public key

泄露秘密 提交于 2019-12-20 17:28:57
问题 When I execute these commands (setting a passphrase, after the first)... $ ssh-keygen -t dsa $ chmod 600 my_key $ chmod 600 my_key.pub ...and then, to test the passphrase... $ ssh-add my_key.pub ...I keep getting: Bad passphrase, try again for my_key.pub: Bad passphrase, try again for my_key.pub: Bad passphrase, try again for my_key.pub: Bad passphrase, try again for my_key.pub: ... What am I doing wrong? 回答1: You're trying to add public key to the agent, that one isn't pass-protected, the

Temporarily remove the ssh private key password in a shell scriptI

那年仲夏 提交于 2019-12-11 04:01:32
问题 I am required to deploy some files from server A to server B. I connect to server A via SSH and from there, connect via ssh to server B, using a private key stored on server A, the public key of which resides in server B's authorized_keys file. The connection from A to B happens within a Bash shell script that resides on server A. This all works fine, nice and simple, until a security-conscious admin pointed out that my SSH private key stored on server A is not passphrase protected, so that

How to make eclipse remember ssh key passphrase?

怎甘沉沦 提交于 2019-12-10 13:53:23
问题 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 try to push. How can I make eclipse remember passphrase so that I don't have to type manually? Thanks 回答1: Even if ssh-add -l lists your passphrase-protected key, EGit may not honour it and still ask for passphrase. To integrate with OS keyring on

ssh-agent doesn't work / save me from typing passphrase for git

徘徊边缘 提交于 2019-12-10 11:47:32
问题 After running eval `ssh-agent -s` ssh-add ~/.ssh/id_rsa and entering my passphrase, git still prompts me to enter the passphrase every time I perform a remote action. To illustrate: bash-4.1$ echo $SSH_AUTH_SOCK /tmp/ssh-cWNDloIzZkhW/agent.5560 bash-4.1$ ssh-add -l 2048 <fingerprint> /cygdrive/c/Users/<username>/.ssh/id_rsa (RSA) bash-4.1$ git pull Enter passphrase for key '/cygdrive/c/Users/<username>/.ssh/id_rsa': 回答1: The problem turns out to be that git was using cygwin's ssh, which looks