Steven Olmsted![]()
Provides convenient client side access to YQL's crypto functions.
Functionality includes:
hmacSha1, hmacSha256, md5, and sha1 hashing.
uuid generation.
Although YQL supports base64 encode/decode, I didn't create methods around this. The gallery-base64 module yields better results.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.06.20-20-07'
}).use('gallery-yql-crypto', function(Y) {
Y.YQLCrypto.hmacSha1('My string value.', 'My secret value.', function (hmacSha1HashValue) {
alert(hmacSha1HashValue);
});
Y.YQLCrypto.hmacSha256('My string value.', 'My secret value.', function (hmacSha256HashValue) {
alert(hmacSha256HashValue);
});
Y.YQLCrypto.md5('My string value.', function (md5HashValue) {
alert(md5HashValue);
});
Y.YQLCrypto.sha1('My string value.', function (sha1HashValue) {
alert(sha1HashValue);
});
Y.YQLCrypto.uuid(function (uuidValue) {
alert(uuidValue);
});
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info