cubetiq-crypto-js/dist/crypto/crypto.js
2022-02-14 19:05:24 +07:00

24 lines
670 B
JavaScript

"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.Crypto = void 0
var Crypto = /** @class */ (function () {
function Crypto(provider) {
this.provider = provider
}
Crypto.prototype.encrypt = function (data) {
return this.provider.encrypt(data)
}
Crypto.prototype.decrypt = function (data) {
return this.provider.decrypt(data)
}
Crypto.newInstance = function (provider) {
if (!Crypto._instance) {
Crypto._instance = new Crypto(provider)
}
return Crypto._instance
}
return Crypto
})()
exports.Crypto = Crypto
//# sourceMappingURL=crypto.js.map