Package Exports
- lcx_encryption
- lcx_encryption/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lcx_encryption) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
一个简单轻量级的八进制数据加密!lcx_encryption
作者温馨提示:
不要使用该加密方法在生产上加密敏感数据,假如你执意要加密敏感数据,造成数据泄露,一切后果用户需自行承担使用风险。Using npm:
npm i lcx_encryptionUsing in Vue. and Using in React.
import { L_necCodeStringVal, L_decCodeStringVal } from 'lcx_encryption'
let val = 'I like you';
let result = L_necCodeStringVal(val); // 为加密函数。
console.log(result); // result 为加密后的一段长度不等字符。
let val = L_decCodeStringVal(result); // 为解密函数
console.log(val); // I like youSubsequent arrangement
- 目前是使用自己密钥,后续会支持使用者自定义传递密钥。
- 加密函数生成的字符,如果使用者传递的加密字符过多,那么加密出来的字符也是特别多,后期会进行更改,无论使用者传递多少字符始终返回特定长度的字符。
- 大家使用中发现有问题,及时联系我。