You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hivemall.apache.org by "Makoto Yui (JIRA)" <ji...@apache.org> on 2018/01/30 05:37:02 UTC

[jira] [Created] (HIVEMALL-168) Support robust encryption/decryption UDF

Makoto Yui created HIVEMALL-168:
-----------------------------------

             Summary: Support robust encryption/decryption UDF
                 Key: HIVEMALL-168
                 URL: https://issues.apache.org/jira/browse/HIVEMALL-168
             Project: Hivemall
          Issue Type: Wish
            Reporter: Makoto Yui


{code:java}
Client-side:
 IN: data1, public RSA key
 OUT: key2, data2
  1. Generate Key1 at random
  2. Encrypt data1 with key1 by AES => data2
  3. Encrypt key1 with a public key of RSA => key2
  4. Send key2 and data2 over network (safe for leak)
 
Server-side:
 IN: key2, data2, private RSA key
 OUT: data1
  1. Decrypt key2 with a secret key of RSA => key1
  2. Decrypt data2 with key1 => data1{code}
 

https://github.com/wwwtyro/cryptico



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)