Giter Site home page Giter Site logo

aes-deencrypt's Introduction

aes-deencrypt

How to use?

bash> hdfs dfs -put libaes-deencrypt.so /udf/libaes-deencrypt.so

impala> create function udf.aes_decrypt(string,string) returns string location '/udf/libaes-deencrypt2.0.so' symbol='AESDecrypt' PREPARE_FN='AESPrepare' CLOSE_FN='AESClose';

impala> select udf.aes_decrypt(unhex('CBA4ACFB309839BA426E07D67F23564F'), '1234567890123456');

impala> select udf.aes_decrypt(unhex('EB02EC381CA0145F5320A458A899B5A9'), '1234567890');

impala> select udf.aes_decrypt(unhex(''), '1234567890123456');

impala> create function udf.aes_encrypt(string,string) returns string location '/udf/libaes-deencrypt2.0.so' symbol='AESEncrypt' PREPARE_FN='AESPrepare' CLOSE_FN='AESClose';

impala> select hex(udf.aes_encrypt('ABC', '1234567890123456'));

impala> select hex(udf.aes_encrypt('ABC', '1234567890'));

impala> select hex(udf.aes_encrypt('', '1234567890123456'));

bash> hdfs dfs -put aes-deencrypt.ll /udf/aes-deencrypt.ll

impala> create function aes_decrypt(string,string) returns string location '/udf/aes-deencrypt.ll' symbol='AES_Decrypt';

impala> select udf.aes_decrypt(unhex('CBA4ACFB309839BA426E07D67F23564F'), '1234567890123456')
;

impala> create function udf.aes_encrypt(string,string) returns string location '/udf/aes-deencrypt.ll' symbol='AES_Encrypt';

impala> select hex(aes_encrypt('ABC', '1234567890123456'));

aes-deencrypt's People

Contributors

zuowang avatar

Watchers

James Cloos avatar zhoubh avatar

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.