oba-crypt
v1.0.2
Published
encrypt and decrypt data at rest and in transit
Downloads
10
Readme
What is this?
A simple data encryption package
Installation
npm install oba-crypt --save
Usage
The `encode` function takes zero (0) or one (1) argument namely:
str(optional): The plain string to be encrypted
The `decode` function takes zero (0) or one (1) argument namely:
codestring(optional): The encrypted string required to be decrypted
Examples
import { encode, decode } from 'oba-crypt';
OR
const { encode, decode } = require('oba-crypt');
Examples:
encode(); // 15:0:18:18:22:14:17:3
encode('obapass1!@#$%^&*()_+><;:,.?'); // 14:1:0:15:0:18:18:27:36:37:38:39:40:41:42:43:44:45:46:48:60:59:57:56:-1:61:62
encode('PBSHAXPTFF'); // 79:65:82:71:64:87:79:83:69:69
encode('Obapass1@@'); // 78:1:0:15:0:18:18:27:37:37
decode(); // password
decode('78:1:0:15:0:18:18:27:37:37'); // Obapass1@@
decode('14:1:0:15:0:18:18:27'); // obapass1
decode('36:37:38:39:40:41:42:43:44:45:46:48:60:59:57:56:-1:61:62'); // !@#$%^&*()_+><;:.?