niushop1.01多商户企业版uniapp源码4.0.4版本A

所属分类:其他
开发工具:Node.js
文件大小:4260KB
下载次数:12
上传日期:2020-11-10 12:53:51
上 传 者6851534
说明:  niushop旗舰版的uniapp版本可以编译生成h5、各种小程序等
(The uniapp version of the ultimate version of niushop can be compiled to generate H5, various small programs, etc)

文件列表:
App.vue (3255, 2020-07-16)
common (0, 2020-07-16)
common\css (0, 2020-07-16)
common\css\iconfont.css (31148, 2020-07-16)
common\css\main.css (572, 2020-07-16)
common\css\theme (0, 2020-07-16)
common\css\theme\gradient.scss (11494, 2020-07-16)
common\css\theme\theme-blue.scss (7518, 2020-07-16)
common\css\theme\theme-common.scss (3033, 2020-07-16)
common\css\theme\theme-default.scss (8114, 2020-06-03)
common\css\theme\theme-green.scss (7576, 2020-07-16)
common\js (0, 2020-07-16)
common\js\auth.js (2501, 2020-07-03)
common\js\config.js (1360, 2020-07-16)
common\js\fenxiao-words.js (501, 2020-06-03)
common\js\golbalConfig.js (432, 2020-07-16)
common\js\html-parser.js (11149, 2020-06-10)
common\js\http.js (2845, 2020-07-16)
common\js\lang.js (2756, 2020-06-04)
common\js\map (0, 2020-07-16)
common\js\map\openMap.js (2985, 2020-06-03)
common\js\map\transformCoordinate.js (4281, 2020-06-03)
common\js\map-wx-jssdk.js (38950, 2020-06-03)
common\js\scroll-view.js (481, 2020-06-03)
common\js\socket.js (1580, 2020-07-16)
common\js\socketTest.js (3376, 2020-07-16)
common\js\util.js (11115, 2020-07-16)
common\js\validate.js (4623, 2020-06-03)
common\js\wx-jssdk.js (3122, 2020-06-03)
components (0, 2020-07-16)
components\city-select (0, 2020-07-16)
components\city-select\city-select.vue (10888, 2020-07-16)
components\city-select\citySelect.js (21785, 2020-06-03)
components\diy-bargain (0, 2020-07-16)
components\diy-bargain\diy-bargain.vue (4742, 2020-07-16)
components\diy-bottom-nav (0, 2020-07-16)
components\diy-bottom-nav\diy-bottom-nav.vue (6793, 2020-07-16)
components\diy-coupon (0, 2020-07-16)
components\diy-coupon\diy-coupon.vue (7764, 2020-07-16)
... ...

Website ====================== http://travistidwell.com/jsencrypt Introduction ====================== When browsing the internet looking for a good solution to RSA Javascript encryption, there is a whole slew of libraries that basically take the fantastic work done by Tom Wu @ http://www-cs-students.stanford.edu/~tjw/jsbn/ and then modify that code to do what they want. What I couldn't find, however, was a simple wrapper around this library that basically uses the library practically untouched, but adds a wrapper to provide parsing of actual Private and Public key-pairs generated with OpenSSL. This library is the result of these efforts. How to use this library. ======================= This library should work hand-in-hand with openssl. With that said, here is how to use this library. - Within your terminal (Unix based OS) type the following. ``` openssl genrsa -out rsa_1024_priv.pem 1024 ``` - This generates a private key, which you can see by doing the following... ``` cat rsa_1024_priv.pem ``` - You can then copy and paste this in the Private Key section of within index.html. - Next, you can then get the public key by executing the following command. ``` openssl rsa -pubout -in rsa_1024_priv.pem -out rsa_1024_pub.pem ``` - You can see the public key by typing... ``` cat rsa_1024_pub.pem ``` - Now copy and paste this in the Public key within the index.html. - Now you can then convert to and from encrypted text by doing the following in code. ```html JavaScript RSA Encryption






``` - Look at how http://www.travistidwell.com/jsencrypt/example.html works to get a better idea. Other Information ======================== This library heavily utilizes the wonderful work of Tom Wu found at http://www-cs-students.stanford.edu/~tjw/jsbn/. This jsbn library was written using the raw variables to perform encryption. This is great for encryption, but most private keys use a Private Key in the PEM format seen below. 1024 bit RSA Private Key in Base*** Format ----------------------------------------- ``` -----BEGIN RSA PRIVATE KEY----- MIICXgIBAAKBgQDHikastc8+I81zCg/qWW8dMr8mqvXQ3qbPAmu0RjxoZVI47tvs kYlFAXOf0sPrhO2nUuooJngnHV0639iTTEYG1vckNaW2R6U5QTdQ5Rq5u+uV3pMk 7w7Vs4n3urQ6jnqt2rTXbC1DNa/PFeAZatbf7ffBBy0IGO0zc128IshYcwIDAQAB AoGBALTNl2JxTvq4SDW/3VH0fZkQXWH1MM10oeMbB2qO5beWb11FGaOO77nGKfWc bYgfp5Ogrql4yhBvLAXnxH8bcqqwORtFhlyV68U1y4R+8WxDNh0aevxH8hRS/1X5 031DJm1JlU0E+vStiktN0tC3ebH5hE+1OxbIHSZ+WOWLYX7JAkEA5uigRgKp8ScG auUijvdOLZIhHWq7y5Wz+nOHUuDw8P7wOTKU34QJAoWEe771p9Pf/GTA/kr0BQnP QvWUDxGzJwJBAN05C6krwPeryFKrKtjOGJIniIoY72wRnoNcdEEs3HDRhf48YWFo riRbZylzzzNFy/gmzT6XJQTfktGqq+FZD9UCQGIJaGrxHJgfmpDuAhMzGsUsYtTr iRox0D1Iqa7dhE693t5aBG010OF6MLqdZA1CXrn5SRtuVVaCSLZEL/2J5UcCQQDA d3MXucNnN4NPuS/L9HMYJWD7lPoosaORcgyK77bSSNgk+u9WSjbH1uYIAIPSffUZ bti+jc1dUg5wb+aeZlgJAkEAurrpmpqj5vg087ZngKfFGR5rozDiTsK5DceTV97K a3Y+Nzl+XWTxDBWk4YPh2ZlKv402hZEfWBYxUDn5ZkH/bw== -----END RSA PRIVATE KEY----- ``` This library simply takes keys in the following format, and translates it to those variables needed to perform the encryptions used in Tom Wu's library. Here are some good resources to investigate further. - http://etherhack.co.uk/asymmetric/docs/rsa_key_breakdown.html - http://www.di-mgt.com.au/rsa_alg.html - https://polarssl.org/kb/cryptography/asn1-key-structures-in-der-and-pem With this information, we can translate a private key format to the variables required with the jsbn library from Tom Wu by using the following mappings. ``` modulus => n public exponent => e private exponent => d prime1 => p prime2 => q exponent1 => dmp1 exponent2 => dmq1 coefficient => coeff ```

近期下载者

相关文件


收藏者