jchavannes / go-pgp Goto Github PK
View Code? Open in Web Editor NEWLayer on top of golang.org/x/crypto/openpgp to handle a few PGP use cases.
License: MIT License
Layer on top of golang.org/x/crypto/openpgp to handle a few PGP use cases.
License: MIT License
Hello,
thanks for the lib, I'm stuck with error=EOF at this line:
pubEntity, err := pgp.GetEntity([]byte(TestPublicKey), []byte{})
I take that line from your encrypt_test.go. At first I was using my pub key, than I copy and paste yours just to see if it works, but no luck still EOF, am I missing something?
thank a lot!
hi, i found this package can generate a new key pair, but failed in decryption when i import key pair which generated outside.
Would you consider adding the ability to download a key from a public keyserver? If not, could you point me towards a source that might allow me to download a key from a keyserver?
Hi
I need to work with large files do you have stream encoding
Hi @jchavannes ,
thanks for creating such a useful package,
while trying encrypt_test
I just replaced the content with my public and private gpg keys but getting error while decoding in my case as below
Error reading message: openpgp: incorrect key
and decrypted message is empty , I checked the encrypted data ,looks fine.
help appriciated .
[Note] have exported gpg keys from same linux machine with below commands
Public Key - gpg --armor --export <keyid>
Private Key - gpg --armor --export-secret-keys <keyid>
Hello,
When I try to sign, it occurs the error "Signing key is encrypted".
Do you know the cause?
Thanks a lot.
Hi, is there any way to have One-pass signature when Encrypt a message?
I have recipient armored public key and my armored private key without passphrase.
Many thanks!
Hi,
Is there any way to create a key with an expiry date and passphrase?
Many thanks!
Hi, after i generate the encrypted message i try to decrypt it with gpg -d
but it fails with
gpg: no valid OpenPGP data found
gpg: decrypt_message failed
the encryption is done with
func encryptStuff(person User) {
fmt.Println(person.stuff)
key, _ := ioutil.ReadFile(person.keypath)
pubEntity, _ := pgp.GetEntity(key, []byte{})
encrypted, _ := pgp.Encrypt(pubEntity, []byte(person.stuff))
fmt.Println(string(encrypted))
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.