public-key-encryption

SSL Alternative - encrypt password with JavaScript submit to PHP to decrypt

送分小仙女□ 提交于 2019-11-26 22:59:33
问题 I'm building a website and my payment methods will be Google Checkout and Paypal. There will be links/buttons which will redirect the user to the secure Google/Paypal sites for processing the payments. This means I do not need the $150/year added expense and complexity of installing SSL certificates for my site. However I would like to encrypt user's passwords as they are logging in so that if they are on a network some malicious person running FireSheep etc can't read the user's actual

Encrypting data with Public Key in node.js

瘦欲@ 提交于 2019-11-26 22:20:00
问题 I need to encrypt a string using a public key (pem file), and then sign it using a private key (also a pem). I am loading the pem files fine: publicCert = fs.readFileSync(publicCertFile).toString(); but after hours of scouring google I can't seem to find a way to encrypt data using the public key. In php I simply call openssl_public_encrypt, but I don't see any corresponding function in node or in any modules. If anyone has any suggestions, let me know. 回答1: No library necessary friends,

Are there any asymmetric encryption options for JavaScript?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 19:59:08
问题 I have to transfer some sensitive information over a JavaScript AJAX Call, over an unencrypted channel (HTTP, not HTTPS). I'd like to encrypt the data, but encryption on the JavaScript side means I expose the key, which makes symmetric encryption only an exercise in security by obscurity. Is there any asymmetric encryption for JavaScript? That way, I can keep the Server decryption key secret. (I'm not worried about the security of Server > JavaScript messages, only about the security of a

Ruby: file encryption/decryption with private/public keys

て烟熏妆下的殇ゞ 提交于 2019-11-26 19:52:01
问题 I am searching for an algorithm for file encryption/decryption which satisfies the following requirements: Algorithm must be reliable Algorithm should be fast for rather big files Private key can be generated by some parameter (for example, password) Generated private key must be compatible with public key (public key is generated only once and stored in database) Is there any Ruby implementation of suggested algorithms? 回答1: Note Well: As emboss mentions in the comments, this answer is a

RSA Public Key format

删除回忆录丶 提交于 2019-11-26 19:19:06
Where can i find some documentation on the format of an RSA public key? An RSA public key formatted by OpenSSH : ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L The same public key formatted for use in Secure Shell (RFC 4716 - The Secure Shell (SSH) Public Key File

Use RSA private key to generate public key?

自古美人都是妖i 提交于 2019-11-26 16:46:26
I don't really understand this one: according to: http://www.madboa.com/geek/openssl/#key-rsa , You can generate a public key from a private key. openssl genrsa -out mykey.pem 1024 openssl rsa -in mykey.pem -pubout > mykey.pub My initial thinking was that they are generated in a pair together. Does RSA private key contain the sum? or the public key? Raam openssl genrsa -out mykey.pem 1024 will actually produce a public - private key pair. The pair is stored in the generated mykey.pem file. openssl rsa -in mykey.pem -pubout > mykey.pub will extract the public key and print that out. Here is a

How to do PGP in Python (generate keys, encrypt/decrypt)

拥有回忆 提交于 2019-11-26 15:27:55
问题 I'm making a program in Python to be distributed to windows users via an installer. The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it. So I need to find a Python library that will let me generate public and private PGP keys, and also decrypt files encrypted with the public key. Is this something pyCrypto will do (documentation is nebulous)? Are there other pure Python libraries? How about a standalone command line tool in any

How to extract public key using OpenSSL?

为君一笑 提交于 2019-11-26 12:35:53
问题 The following command generates a file which contains both public and private key: openssl genrsa -des3 -out privkey.pem 2048 Source: here With OpenSSL, the private key contains the public key information as well, so a public key doesn\'t need to be generated separately How can we extract the public key from the privkey.pem file? Thanks. 回答1: openssl rsa -in privkey.pem -pubout > key.pub That writes the public key to key.pub 回答2: Though, the above technique works for the general case, it didn

Git SSH authentication

蓝咒 提交于 2019-11-26 09:01:40
I have Debian, Fisheye and Git on my server. My git repos are managed by Fisheye. There is no authentication at the Fisheye part. All authentication procedures are managed by git. I would like to use SSH authentication, so that I do not need to provide username and password as I push my changes to the server. I know how to create an rsa key, but where do I copy my public key at the server? VonC The key part of the article " Git on the Server - Setting Up the Server " is: you need to add some developer SSH public keys to the ~/.ssh/authorized_keys file for that user. Let’s assume you’ve

Is there a way to “autosign” commits in Git with a GPG key?

人盡茶涼 提交于 2019-11-26 08:39:22
问题 Is there an easy way to make Git always signs each commit or tag that is created? I tried it with something like: alias commit = commit -S But that didn\'t do the trick. I don\'t want to install a different program to make this happen. Is it doable with ease? Just a side question, maybe commits shouldn\'t be signed, only tags, which I never create, as I submit single commits for a project like Homebrew, etc. 回答1: Note: if you don't want to add -S all the time to make sure your commits are