In my app i would like to use "Stanford Javascript Crypto Library" which has a typing and i also see https://github.com/Evgenus/sjcl-typescript-definitions.
I dont understand how i can use it in my project. How can i use the command
sjcl.encrypt("password", "data")
in my project.
i am using angular 4, angular-cli beta 2
i have run npm install --save-dev @types/sjcl
tsconfig.app.json
{
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "es2015",
"baseUrl": "",
"types": [ "sjcl" ]
},
"exclude": [
"test.ts",
"**/*.spec.ts"
],
"extends": "../tsconfig.json"
}