@burstjs/crypto
Advanced tools
Comparing version 0.5.1 to 0.6.0-alpha.1
@@ -0,1 +1,2 @@ | ||
import * as CryptoJS from 'crypto-js'; | ||
export declare class Converter { | ||
@@ -8,7 +9,7 @@ static convertHexStringToByteArray(hex: any): number[]; | ||
static checkBytesToIntInput(bytes: any, numBytes: any, opt_startIndex: any): any; | ||
static convertByteArrayToWordArray(ba: any): any; | ||
static convertByteArrayToWordArray(ba: any): CryptoJS.LibWordArray; | ||
static convertWordToByteArray(word: any, length: any): any[]; | ||
static convertWordArrayToByteArray(wordArray: any, length?: number): any; | ||
static convertWordArrayToByteArray(wordArray: any, length?: number): any[]; | ||
static convertByteArrayToString(bytes: any, opt_startIndex?: number, length?: number): string; | ||
static convertWordArrayToUint8Array(wordArray: any): Uint8Array; | ||
} |
@@ -0,1 +1,2 @@ | ||
import * as CryptoJS from 'crypto-js'; | ||
export declare class Converter { | ||
@@ -8,7 +9,7 @@ static convertHexStringToByteArray(hex: any): number[]; | ||
static checkBytesToIntInput(bytes: any, numBytes: any, opt_startIndex: any): any; | ||
static convertByteArrayToWordArray(ba: any): any; | ||
static convertByteArrayToWordArray(ba: any): CryptoJS.LibWordArray; | ||
static convertWordToByteArray(word: any, length: any): any[]; | ||
static convertWordArrayToByteArray(wordArray: any, length?: number): any; | ||
static convertWordArrayToByteArray(wordArray: any, length?: number): any[]; | ||
static convertByteArrayToString(bytes: any, opt_startIndex?: number, length?: number): string; | ||
static convertWordArrayToUint8Array(wordArray: any): Uint8Array; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Converter = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -4,0 +5,0 @@ class Converter { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Curve25519 = void 0; | ||
class Curve25519 { | ||
@@ -4,0 +5,0 @@ static clamp(k) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decryptAES = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -4,0 +5,0 @@ exports.decryptAES = (encryptedBase64, key) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decryptData = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -4,0 +5,0 @@ const inflate_1 = require("pako/lib/inflate"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decryptMessage = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -4,0 +5,0 @@ const decryptData_1 = require("./decryptData"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ECKCDSA = void 0; | ||
const curve25519_1 = require("./curve25519"); | ||
@@ -4,0 +5,0 @@ class ECKCDSA { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encryptAES = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -4,0 +5,0 @@ exports.encryptAES = (text, key) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encryptData = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -4,0 +5,0 @@ const deflate_1 = require("pako/lib/deflate"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encryptMessage = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -4,0 +5,0 @@ const encryptData_1 = require("./encryptData"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateMasterKeys = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -4,0 +5,0 @@ const ec_kcdsa_1 = require("./ec-kcdsa"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateSignature = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -4,0 +5,0 @@ const ec_kcdsa_1 = require("./ec-kcdsa"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateSignedTransactionBytes = void 0; | ||
exports.generateSignedTransactionBytes = (unsignedTransactionHex, signature) => unsignedTransactionHex.substr(0, 192) + signature + unsignedTransactionHex.substr(320); | ||
//# sourceMappingURL=generateSignedTransactionBytes.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getAccountIdFromPublicKey = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -4,0 +5,0 @@ const CryptoJS = require("crypto-js"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hashSHA256 = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -4,0 +5,0 @@ exports.hashSHA256 = (input) => { |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./encryptAES")); | ||
__export(require("./decryptAES")); | ||
__export(require("./decryptData")); | ||
__export(require("./encryptData")); | ||
__export(require("./decryptMessage")); | ||
__export(require("./encryptMessage")); | ||
__export(require("./generateMasterKeys")); | ||
__export(require("./getAccountIdFromPublicKey")); | ||
__export(require("./hashSHA256")); | ||
__export(require("./passPhraseGenerator")); | ||
__export(require("./verifySignature")); | ||
__export(require("./generateSignedTransactionBytes")); | ||
__export(require("./generateSignature")); | ||
__exportStar(require("./encryptAES"), exports); | ||
__exportStar(require("./decryptAES"), exports); | ||
__exportStar(require("./decryptData"), exports); | ||
__exportStar(require("./encryptData"), exports); | ||
__exportStar(require("./decryptMessage"), exports); | ||
__exportStar(require("./encryptMessage"), exports); | ||
__exportStar(require("./generateMasterKeys"), exports); | ||
__exportStar(require("./getAccountIdFromPublicKey"), exports); | ||
__exportStar(require("./hashSHA256"), exports); | ||
__exportStar(require("./passPhraseGenerator"), exports); | ||
__exportStar(require("./verifySignature"), exports); | ||
__exportStar(require("./generateSignedTransactionBytes"), exports); | ||
__exportStar(require("./generateSignature"), exports); | ||
__exportStar(require("./typings/keys"), exports); | ||
__exportStar(require("./typings/encryptedMessage"), exports); | ||
__exportStar(require("./typings/encryptedData"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PassPhraseGenerator = void 0; | ||
const _seedrandom = require("seedrandom"); | ||
@@ -4,0 +5,0 @@ const words_1 = require("./words"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.verifySignature = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -4,0 +5,0 @@ const ec_kcdsa_1 = require("./ec-kcdsa"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.words = void 0; | ||
exports.words = [ | ||
@@ -4,0 +5,0 @@ 'abandon', |
{ | ||
"name": "@burstjs/crypto", | ||
"version": "0.5.1", | ||
"version": "0.6.0-alpha.1", | ||
"description": "Cryptographic functions for building Burstcoin apps.", | ||
@@ -59,3 +59,3 @@ "contributors": [ | ||
}, | ||
"gitHead": "27a7a2409c626bdb996f0085497cc4e8707144a1", | ||
"gitHead": "505c2211b2089675129915bdd4e909f5bdc33fab", | ||
"publishConfig": { | ||
@@ -62,0 +62,0 @@ "access": "public" |
@@ -40,2 +40,3 @@ /** | ||
// @ts-ignore | ||
const decrypted = CryptoJS.AES.decrypt(encrypted, key, {iv}); | ||
@@ -42,0 +43,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1843962
131
21118