0.0.3 • Published 10 months ago

lcx_encryption v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

一个简单轻量级的八进制数据加密!lcx_encryption

作者温馨提示:

  不要使用该加密方法在生产上加密敏感数据,假如你执意要加密敏感数据,造成数据泄露,一切后果用户需自行承担使用风险。

Using npm:

 npm i lcx_encryption

Using 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 you

Subsequent arrangement

  1. 目前是使用自己密钥,后续会支持使用者自定义传递密钥。
  2. 加密函数生成的字符,如果使用者传递的加密字符过多,那么加密出来的字符也是特别多,后期会进行更改,无论使用者传递多少字符始终返回特定长度的字符。
  3. 大家使用中发现有问题,及时联系我。
0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago