akuroda / teradata-udf-sha2 Goto Github PK
View Code? Open in Web Editor NEWSHA-2 hash function UDFs(SHA-256/512) for Teradata
License: MIT License
SHA-2 hash function UDFs(SHA-256/512) for Teradata
License: MIT License
When running "sha256test_chk.sql" in BTEQ, the output of the CASE statment ("OK"/"NG") is not displayed, thought it does display in SQL Assistant
Example:
.run file = sha256test_chk.sql
BTEQ -- Enter your SQL request or BTEQ command:
/* check sha256 result against test data */
sel
i,
hash_sha256(input_data),
case
when hash_sha256(input_data) = output_data then 'OK'
else 'NG'
end as "result"
from
sha256_test
order by 1;
*** Query completed. 130 rows found. 3 columns returned.
*** Total elapsed time was 4 seconds.
i hash_sha256(input_data)
0 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b85
1 ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48b
2 961b6dd3ede3cb8ecbaacbd68de040cd78eb2ed5889130cceb4c49268ea4d50
3 9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f
4 61be55a8e2f6b4e172338bddf184d6dbee29c98853e0a0485ecee7f27b9af0b
README lists:
It should read:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.