Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 333EB200D5B for ; Wed, 13 Dec 2017 17:50:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 31D12160C23; Wed, 13 Dec 2017 16:50:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7986F160C0F for ; Wed, 13 Dec 2017 17:50:16 +0100 (CET) Received: (qmail 48083 invoked by uid 500); 13 Dec 2017 16:50:15 -0000 Mailing-List: contact dev-help@orc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@orc.apache.org Delivered-To: mailing list dev@orc.apache.org Received: (qmail 47567 invoked by uid 99); 13 Dec 2017 16:50:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2017 16:50:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DC51FDFDE6; Wed, 13 Dec 2017 16:50:14 +0000 (UTC) From: moresandeep To: dev@orc.apache.org Reply-To: dev@orc.apache.org Message-ID: Subject: [GitHub] orc pull request #201: Orc 250 - Create sha256 mask Content-Type: text/plain Date: Wed, 13 Dec 2017 16:50:14 +0000 (UTC) archived-at: Wed, 13 Dec 2017 16:50:17 -0000 GitHub user moresandeep opened a pull request: https://github.com/apache/orc/pull/201 Orc 250 - Create sha256 mask Masking strategy that masks String, Varchar, Char and Binary types as SHA 256 hash. For String type: All string type of any length will be converted to 64 length SHA256 hash. For Varchar type: For Varchar type, max-length property will be honored i.e. if the length is less than max-length then the SHA256 hash will be truncated to max-length. If max-length is greater than 64 then the output is the sha256 length, which is 64. For Char type: For Char type, the length of mask will always be equal to specified max-length. If the given length (max-length) is less than SHA256 hash length (64) the mask will be truncated. If the given length (max-length) is greater than SHA256 hash length (64) then the mask will be padded by blank spaces. For Binary type: All Binary type of any length will be converted to 64 length SHA256 hash. You can merge this pull request into a Git repository by running: $ git pull https://github.com/moresandeep/orc ORC-250_SHA-256 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/orc/pull/201.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #201 ---- commit b8f4bbed8bab2f209748ce5e94b100b198b5371f Author: Sandeep More Date: 2017-11-09T16:04:30Z Merge pull request #1 from apache/master Update from main repo SHA-256 - Checkpoint 1 commit 877daa94aaf1da0adfbde3a01face2ac7e6b9091 Author: Sandeep More Date: 2017-12-05T15:27:51Z Merge commit 'b8f4bbed8bab2f209748ce5e94b100b198b5371f' into ORC-250_SHA-256 commit e84ab601186145ddb09859715b065e49eb7ddd4d Author: Sandeep More Date: 2017-12-07T14:49:44Z ORC-250 - Support for sha256 mask ---- ---