What's a good way to encrypt data using an asymmetric key, that's available to both java and ruby?
        Posted  
        
            by 
                Michael Campbell
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Michael Campbell
        
        
        
        Published on 2010-12-24T18:30:05Z
        Indexed on 
            2010/12/24
            18:54 UTC
        
        
        Read the original article
        Hit count: 281
        
I have a customer that wants to encrypt some data in his database (not passwords; this needs actual encryption, not hashing). The application which will be doing the encrypting/writing is in Java, but the process which will DECRYPT it is behind a secure firewall, and is written in ruby.
The idea was to use a public/private key scheme; the java system would encrypt it with the public key, then the process on his local box would use the private key to decrypt it as needed.
I'm looking for any experience anyone has doing something like that; my main question is what sorts of libraries on java and ruby can interoperate with the same keys and data.
© Stack Overflow or respective owner