文件名称:keyboard-cipher:用JavaScript制作的键盘移位密码加解密算法
文件大小:12KB
文件格式:ZIP
更新时间:2024-04-16 23:07:23
javascript keyboard cipher js keyboard-layout
键盘密码 键盘移位密码加密和解密算法。 安装 $ npm install keyboard-cipher --save 例子 加密 var keyboardCipher = require ( 'keyboard-cipher' ) ; // Message you want to encrypt. var plainText = 'hello world' ; // Encrypt the message with 2 types of shifts: left or right. var leftCipherText = keyboardCipher . encrypt ( plainText , 'left' ) ; var rightCipherText = keyboardCipher . encrypt ( plainText , 'right' ) ; // Log the
【文件预览】:
keyboard-cipher-main
----index.js(154B)
----package.json(898B)
----data()
--------map.js(807B)
----.eslintrc.json(1KB)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----jest.config.js(50B)
----tests()
--------decrypt.test.js(391B)
--------encrypt.test.js(391B)
----LICENSE(1KB)
----src()
--------encrypt.js(651B)
--------decrypt.js(641B)
----.gitignore(41B)
----CODE_OF_CONDUCT.md(5KB)
----README.md(2KB)