This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imports the Google Cloud client library | |
const { BigQuery } = require('@google-cloud/bigquery'); | |
// Defines the location of the dataset and tables | |
const location = 'US'; | |
// Creates a BigQuery client | |
const bigquery = new BigQuery({ | |
// The relative file path to your Service Account key file | |
keyFilename: 'bigquery-sa.json', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/core-min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/sha256.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/enc-base64.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js"></script> | |
<script> | |
function toWordArray(str){ | |
return CryptoJS.enc.Utf8.parse(str); | |
} | |
function toString(words){ |