Code Monkey home page Code Monkey logo

go-pgp's People

Contributors

jchavannes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

go-pgp's Issues

EOF

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!

Download a key from a keyserver

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?

Getting issue in decrypting with own private key

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>

Signing key is encrypted

Hello,

When I try to sign, it occurs the error "Signing key is encrypted".
Do you know the cause?

Thanks a lot.

One-pass Signature

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!

Failed to decrypt message

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))
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.