Skip to content

Commit

Permalink
2 files modified
Browse files Browse the repository at this point in the history
  • Loading branch information
tungyingwaltz committed Jul 4, 2019
1 parent e46527c commit 500aeea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"@angular/common": "8.0.0",
"@angular/compiler": "8.0.0",
"@angular/core": "8.0.0",
"@angular/forms": "8.0.0",
"@angular/platform-browser": "8.0.0",
"@angular/platform-browser-dynamic": "8.0.0",
"@angular/router": "8.0.0",
"core-js": "2.6.9",
"@angular/common": "^8.0.0",
"@angular/compiler": "^8.0.0",
"@angular/core": "^8.0.0",
"@angular/forms": "^8.0.0",
"@angular/platform-browser": "^8.0.0",
"@angular/platform-browser-dynamic": "^8.0.0",
"@angular/router": "^8.0.0",
"@types/crypto-js": "^3.1.43",
"core-js": "2",
"crypto-js": "^3.1.8",
"rxjs": "6.5.2",
"zone.js": "0.9.1"
"rxjs": "^6.5.2",
"zone.js": "^0.9.1"
},
"scripts": {
"ng": "ng",
Expand All @@ -31,6 +32,7 @@
"@types/node": "~8.9.4",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/crypto-js": "^3.1.43",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
Expand Down
1 change: 1 addition & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export class AppComponent {
text2: string;
text3: string;
text4: string;

encrypt() {
var words = CryptoJS.enc.Utf8.parse(this.text1);
this.text2 = CryptoJS.enc.Base64.stringify(words);
Expand Down

0 comments on commit 500aeea

Please sign in to comment.