3.9.98 • Published 12 months ago

@diotoborg/libero-ratione-delectus v3.9.98

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@diotoborg/libero-ratione-delectus

JavaScript library for encryption / decryption.

This package is intended to work both on the server side and on the client side.

Installation:

$ npm install --save @diotoborg/libero-ratione-delectus

Documentation:

ROT-X

/* 
*   RotX is a simple letter substitution cipher 
*   that replaces a letter with the X letter 
*   after it in the alphabet. ROT-X is a special 
*   case of the Caesar cipher
*
*   A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
*   N O P Q R S T U V W X Y Z A B C D E F G H I J K L M
*/

Usage on typescript:

// Import the package:
import { rotx } from '@diotoborg/libero-ratione-delectus';

// Use it:
let encrypt: string = rotx("plain string", 13);
let decrypt: string = rotx("rot-13 string", 13);

// Definition of rotx method:
// rotx(str: string, base: number): string

Usage on javascript:

// Import the package:
const crypto = require('@diotoborg/libero-ratione-delectus');

// Use it:
let encrypt = crypto.rotx("plain string", 13);
let decrypt = crypto.rotx("rot-13 string", 13);

// Definition of rotx method:
// rotx(str: string, base: number): string

Base64

/* 
*   Base64 is a group of binary-to-text encoding 
*   schemes that represent binary data 
*   (more specifically, a sequence of 8-bit bytes) 
*   in sequences of 24 bits that can be represented 
*   by four 6-bit Base64 digits.
*
*   The more data, the larger hash!
*   VGhlIG1vcmUgZGF0YSwgdGhlIGxhcmdlciBoYXNoIQ==
*/

Usage on typescript:

// Import the package:
import { base64 } from '@diotoborg/libero-ratione-delectus';

// Use it:
let encrypt: string = base64.encode("plain string");
let decrypt: string = base64.decode("base64 string");

// Definition of base64 methods:
// base64.encode(str: string): string
// base64.decode(str: string): string

Usage on javascript:

// Import the package:
const crypto = require('@diotoborg/libero-ratione-delectus');

// Use it:
let encrypt = crypto.base64.encode("plain string");
let decrypt = crypto.base64.decode("base64 string");

// Definition of base64 methods:
// base64.encode(str: string): string
// base64.decode(str: string): string

Hex

/* 
*   Hex
*   Hexadecimal is the name of the numbering 
*   system that is base 16. This system, 
*   therefore, has numerals 0 - 15.
*
*   That means that two-digit decimal numbers 
*   10 - 15 must be represented by a single 
*   numeral to exist in this numbering system.
*   "A"–"F" respectively.
*
*   0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
*   0 1 2 3 4 5 6 7 8 9 A  B  C  D  E  F
*/

Usage on typescript:

// Import the package:
import { hex } from '@diotoborg/libero-ratione-delectus';

// Use it:
let encrypt: string = hex.encode("plain string");
let decrypt: string = hex.decode("hexadecimal string");

// Definition of hex methods:
// hex.encode(str: string): string
// hex.decode(str: string): string

Usage on javascript:

// Import the package:
const crypto = require('@diotoborg/libero-ratione-delectus');

// Use it:
let encrypt = crypto.hex.encode("plain string");
let decrypt = crypto.hex.decode("hexadecimal string");

// Definition of hex methods:
// hex.encode(str: string): string
// hex.decode(str: string): string
bintypeerrorkinesisSymbol.toStringTaglessoptionconfigvpcslicecommand-linetsdeep-cloneECMAScript 3asyncprocesscontainshookformSystem.globalsignalscommandbusypositiveObject.assignflatYAMLdom-testing-libraryastsortprivate datareadablestreamString.prototype.matchAlltrimEndsnsregular-expressionargsbrowserlist6to5boundclassnameincludesexpressionemrString.prototype.trimES2022parserspinnerauthfunctionsstyleguidetransportexecjson-schema-validatorimportmapreduceextendvalidliveArray.prototype.filterendpointArray.prototype.findLastIndexinterruptsexit-codeless compilersimpledbrequirepostcss-pluginURLkeycore-jsfromnpmjson-schema-validationbannerdataviewES2015identifierscomparevarsdomdataquotereact-hook-formindicatoreslint-pluginfunctionmake diraccessordescriptionexpressenvironmentswindowshttpbabelproxyfetchsortedinstallasciicomputed-typesexecuteefficienttoStringTagcall-bindclassesworkspace:*walktimesharedarraybufferfixed-widthfigleteventEmitter@@toStringTagpatchcodescloudwatchcryptignoreformatcolumnsArrayBuffer.prototype.slicepolyfilltypedarraysES2018viewprotocliencryptionECMAScript 2020gdprenvreadbuffershasOwnPropertypostcsstelephonesigtermFunction.prototype.namewritestreamsdescriptorsPushnested cssminimalObservablehooksstatelessreusedescriptoruuidECMAScript 7flatMapconcatforksameValueZerobrowserjsonschemainternalroutingautoprefixershebang[[Prototype]]whichArray.prototype.flatMapes6global this valueregextypedcorevaluesfindLastIndexbrowserslistec2deepcloneequalityconsumeworkermixinslinuxPromisees8fastclonenativebddinvisualUnderscorearktypebindstylesheetparseregular expressionsyntaxwaftacitless.jsapolloapipropObject.definePropertys3sqsimmerflagshelperwarningget_.extendassertisConcatSpreadabletostringtagsespreprocessorESnextgraphqldatastructureECMAScript 2022css nestingargvMapphonevalidationamazonWebSocketstoSortedlrukoreanprotobufes2016react poseargumentlengthdefinetypedarraymatchfluxguidmatchesescapequeryarraycall-boundchildCSSobjectcollectioncompilerObject.entriesfindLastcloudsearchObject.fromEntriesinstallerRxbundlingtoReversed-0bcryptcallboundreal-timetoobjectlesscsslintgradients css3propertiespnpm9ES8keyses7global objectECMAScript 2016linkeventsprogressregexppackage.jsoncollection.es6fullIteratorjQuerystreaminferencelanguagehardlinksperformanceTypedArrayTypeScriptvalidatorexit__proto__syntaxerrorReflect.getPrototypeOfcallposezerotypeofform-validationless mixinsUint16Arraybootstrap css
3.9.97

12 months ago

3.9.98

12 months ago

3.9.96

12 months ago

3.9.95

1 year ago

3.9.94

1 year ago

3.9.93

1 year ago

3.9.92

1 year ago

3.9.91

1 year ago

3.9.90

1 year ago

3.9.89

1 year ago

3.9.88

1 year ago

3.9.87

1 year ago

3.9.86

1 year ago

3.8.86

1 year ago

3.8.85

1 year ago

3.8.84

1 year ago

3.7.84

1 year ago

3.7.83

1 year ago

3.7.82

1 year ago

3.7.81

1 year ago

3.7.80

1 year ago

3.7.79

1 year ago

3.7.78

1 year ago

3.7.77

1 year ago

3.7.76

1 year ago

3.7.75

1 year ago

3.7.74

1 year ago

3.7.73

1 year ago

3.7.72

1 year ago

3.7.71

1 year ago

3.7.70

1 year ago

3.7.69

1 year ago

3.7.68

1 year ago

3.7.67

1 year ago

3.7.66

1 year ago

3.7.65

1 year ago

3.7.64

1 year ago

3.7.63

1 year ago

3.7.62

1 year ago

3.7.61

1 year ago

3.7.60

1 year ago

3.7.59

1 year ago

3.7.58

1 year ago

3.7.57

1 year ago

3.7.56

1 year ago

3.7.55

1 year ago

3.7.54

1 year ago

3.7.53

1 year ago

3.7.52

1 year ago

3.7.51

1 year ago

3.7.50

1 year ago

3.7.49

1 year ago

3.7.48

1 year ago

3.7.47

1 year ago

3.7.46

1 year ago

3.7.45

1 year ago

3.7.44

1 year ago

3.7.43

1 year ago

3.6.43

1 year ago

3.6.42

1 year ago

3.6.41

1 year ago

3.6.40

1 year ago

2.6.40

1 year ago

2.6.39

1 year ago

2.6.38

1 year ago

2.6.37

1 year ago

2.5.37

1 year ago

2.5.36

1 year ago

2.5.35

1 year ago

2.5.34

1 year ago

2.5.33

1 year ago

2.5.32

1 year ago

2.5.31

1 year ago

2.5.30

1 year ago

2.5.29

1 year ago

2.5.28

1 year ago

2.5.27

1 year ago

2.5.26

1 year ago

2.5.25

1 year ago

2.5.24

1 year ago

2.5.23

1 year ago

2.4.23

1 year ago

2.3.23

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago