Skip to content

Commit d7f9d31

Browse files
author
Slaals
committed
Adds bitcoin opcode
1 parent 3817313 commit d7f9d31

File tree

538 files changed

+194399
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

538 files changed

+194399
-3
lines changed

assets/img/scripts.png

46 KB
Loading
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "crypto-js",
3+
"version": "3.1.9",
4+
"description": "JavaScript library of crypto standards.",
5+
"license": "MIT",
6+
"homepage": "http://github.com/brix/crypto-js",
7+
"repository": {
8+
"type": "git",
9+
"url": "http://github.com/brix/crypto-js.git"
10+
},
11+
"keywords": [
12+
"security",
13+
"crypto",
14+
"Hash",
15+
"MD5",
16+
"SHA1",
17+
"SHA-1",
18+
"SHA256",
19+
"SHA-256",
20+
"RC4",
21+
"Rabbit",
22+
"AES",
23+
"DES",
24+
"PBKDF2",
25+
"HMAC",
26+
"OFB",
27+
"CFB",
28+
"CTR",
29+
"CBC",
30+
"Base64"
31+
],
32+
"main": "index.js",
33+
"dependencies": {},
34+
"ignore": [],
35+
"_release": "3.1.9",
36+
"_resolution": {
37+
"type": "version",
38+
"tag": "3.1.9",
39+
"commit": "c8ac779bb0f5b8c7947422e09e96c75d768b019e"
40+
},
41+
"_source": "https://github.com/brix/crypto-js.git",
42+
"_target": "^3.1.9",
43+
"_originalSource": "crypto-js",
44+
"_direct": true
45+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Contribution
2+
3+
# Git Flow
4+
5+
The crypto-js project uses [git flow](https://github.com/nvie/gitflow) to manage branches.
6+
Do your changes on the `develop` or even better on a `feature/*` branch. Don't do any changes on the `master` branch.
7+
8+
# Pull request
9+
10+
Target your pull request on `develop` branch. Other pull request won't be accepted.
11+
12+
# How to build
13+
14+
1. Clone
15+
16+
2. Run
17+
18+
```sh
19+
npm install
20+
```
21+
22+
3. Run
23+
24+
```sh
25+
npm run build
26+
```
27+
28+
4. Check `build` folder
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# License
2+
3+
[The MIT License (MIT)](http://opensource.org/licenses/MIT)
4+
5+
Copyright (c) 2009-2013 Jeff Mott
6+
Copyright (c) 2013-2016 Evan Vosberg
7+
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in
16+
all copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24+
THE SOFTWARE.
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
# crypto-js
2+
3+
JavaScript library of crypto standards.
4+
5+
## Node.js (Install)
6+
7+
Requirements:
8+
9+
- Node.js
10+
- npm (Node.js package manager)
11+
12+
```bash
13+
npm install crypto-js
14+
```
15+
16+
### Usage
17+
18+
Modular include:
19+
20+
```javascript
21+
var AES = require("crypto-js/aes");
22+
var SHA256 = require("crypto-js/sha256");
23+
...
24+
console.log(SHA256("Message"));
25+
```
26+
27+
Including all libraries, for access to extra methods:
28+
29+
```javascript
30+
var CryptoJS = require("crypto-js");
31+
console.log(CryptoJS.HmacSHA1("Message", "Key"));
32+
```
33+
34+
## Client (browser)
35+
36+
Requirements:
37+
38+
- Node.js
39+
- Bower (package manager for frontend)
40+
41+
```bash
42+
bower install crypto-js
43+
```
44+
45+
### Usage
46+
47+
Modular include:
48+
49+
```javascript
50+
require.config({
51+
packages: [
52+
{
53+
name: 'crypto-js',
54+
location: 'path-to/bower_components/crypto-js',
55+
main: 'index'
56+
}
57+
]
58+
});
59+
60+
require(["crypto-js/aes", "crypto-js/sha256"], function (AES, SHA256) {
61+
console.log(SHA256("Message"));
62+
});
63+
```
64+
65+
Including all libraries, for access to extra methods:
66+
67+
```javascript
68+
// Above-mentioned will work or use this simple form
69+
require.config({
70+
paths: {
71+
'crypto-js': 'path-to/bower_components/crypto-js/crypto-js'
72+
}
73+
});
74+
75+
require(["crypto-js"], function (CryptoJS) {
76+
console.log(CryptoJS.HmacSHA1("Message", "Key"));
77+
});
78+
```
79+
80+
### Usage without RequireJS
81+
82+
```html
83+
<script type="text/javascript" src="path-to/bower_components/crypto-js/crypto-js.js"></script>
84+
<script type="text/javascript">
85+
var encrypted = CryptoJS.AES(...);
86+
var encrypted = CryptoJS.SHA256(...);
87+
</script>
88+
```
89+
90+
## API
91+
92+
See: https://code.google.com/p/crypto-js
93+
94+
### AES Encryption
95+
96+
#### Plain text encryption
97+
98+
```javascript
99+
var CryptoJS = require("crypto-js");
100+
101+
// Encrypt
102+
var ciphertext = CryptoJS.AES.encrypt('my message', 'secret key 123');
103+
104+
// Decrypt
105+
var bytes = CryptoJS.AES.decrypt(ciphertext.toString(), 'secret key 123');
106+
var plaintext = bytes.toString(CryptoJS.enc.Utf8);
107+
108+
console.log(plaintext);
109+
```
110+
111+
#### Object encryption
112+
113+
```javascript
114+
var CryptoJS = require("crypto-js");
115+
116+
var data = [{id: 1}, {id: 2}]
117+
118+
// Encrypt
119+
var ciphertext = CryptoJS.AES.encrypt(JSON.stringify(data), 'secret key 123');
120+
121+
// Decrypt
122+
var bytes = CryptoJS.AES.decrypt(ciphertext.toString(), 'secret key 123');
123+
var decryptedData = JSON.parse(bytes.toString(CryptoJS.enc.Utf8));
124+
125+
console.log(decryptedData);
126+
```
127+
128+
### List of modules
129+
130+
131+
- ```crypto-js/core```
132+
- ```crypto-js/x64-core```
133+
- ```crypto-js/lib-typedarrays```
134+
135+
---
136+
137+
- ```crypto-js/md5```
138+
- ```crypto-js/sha1```
139+
- ```crypto-js/sha256```
140+
- ```crypto-js/sha224```
141+
- ```crypto-js/sha512```
142+
- ```crypto-js/sha384```
143+
- ```crypto-js/sha3```
144+
- ```crypto-js/ripemd160```
145+
146+
---
147+
148+
- ```crypto-js/hmac-md5```
149+
- ```crypto-js/hmac-sha1```
150+
- ```crypto-js/hmac-sha256```
151+
- ```crypto-js/hmac-sha224```
152+
- ```crypto-js/hmac-sha512```
153+
- ```crypto-js/hmac-sha384```
154+
- ```crypto-js/hmac-sha3```
155+
- ```crypto-js/hmac-ripemd160```
156+
157+
---
158+
159+
- ```crypto-js/pbkdf2```
160+
161+
---
162+
163+
- ```crypto-js/aes```
164+
- ```crypto-js/tripledes```
165+
- ```crypto-js/rc4```
166+
- ```crypto-js/rabbit```
167+
- ```crypto-js/rabbit-legacy```
168+
- ```crypto-js/evpkdf```
169+
170+
---
171+
172+
- ```crypto-js/format-openssl```
173+
- ```crypto-js/format-hex```
174+
175+
---
176+
177+
- ```crypto-js/enc-latin1```
178+
- ```crypto-js/enc-utf8```
179+
- ```crypto-js/enc-hex```
180+
- ```crypto-js/enc-utf16```
181+
- ```crypto-js/enc-base64```
182+
183+
---
184+
185+
- ```crypto-js/mode-cfb```
186+
- ```crypto-js/mode-ctr```
187+
- ```crypto-js/mode-ctr-gladman```
188+
- ```crypto-js/mode-ofb```
189+
- ```crypto-js/mode-ecb```
190+
191+
---
192+
193+
- ```crypto-js/pad-pkcs7```
194+
- ```crypto-js/pad-ansix923```
195+
- ```crypto-js/pad-iso10126```
196+
- ```crypto-js/pad-iso97971```
197+
- ```crypto-js/pad-zeropadding```
198+
- ```crypto-js/pad-nopadding```

0 commit comments

Comments
 (0)