7.5.68 • Published 11 months ago

@dramaorg/praesentium-praesentium v7.5.68

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

Chiperline

Chiperline an encryption method to protect data by obfuscating key map and generating randomly seed to protect the key.

Features

  • Encrypting String using key
  • Decrypting String
  • Generating Random UUID
  • Generating Random Name
  • Generating Random Int (min, max)
  • Comparing String and Encrpted String

Try Demo

Docs

This is example how to using the encryption

  const Chiperline = require("@dramaorg/praesentium-praesentium")
  const chiper = new Chiperline("YourKey") // hcange this to your key

  const your_string = "MyPassword123"

  const encryptText = chiper.encrypt(your_string)
  console.log("Encrypted String: " + encryptText)

  const decryptText = chiper.decrypt(encryptText)
  console.log("Decrypted String: " + decryptText)

Constructor

Initialize the package

    const Chiperline = require("@dramaorg/praesentium-praesentium")
    const chiper = new Chiperline("YourKey") // Change this to your key

compare(string, encrypted_string): Boolean

Return boolean if the string are compare with encrypted_string

Example:

const text = "Hello WOrld"
const encrypted_text = "!6e03C71b8229A54c5A97ff1A4dC760b990B46178BcF614f3f531C6a6ce19F621@dramaorg/praesentium-praesentium"
const isCompare = chiper.compare(text, encrypted_text)
console.log(isCompare) // true

encrypt(string): String

Return encrypted string

Example:

const text = "Hello World"
const encryptedText = chiper.encrypt(text)
console.log(encryptedText) // return !6e03C71b8229A54c5A97ff1A4dC760b990B46178BcF614f3f531C6a6ce19F621.sportline

decrypt(string): String

Return decrypted string (The key must be same when encrypting, or it will unreadable)

Example:

const text = "!6e03C71b8229A54c5A97ff1A4dC760b990B46178BcF614f3f531C6a6ce19F621.sportline"
const decryptedText = chiper.decrypt(text)
console.log(decryptedText) // "Hello World"

generateUUID(): String

Return UUID version 4

Example:

const uuid = chiper.generateUUID()
console.log(uuid) // "6a8b9c1c-2d2a-414e-9147-db7ee0482475"

randomName(word_length): String

Return randomly name

Example:

const name = chiper.randomName(2)
console.log(name) // "Gasetes Fofuni"

randomString(length): String

Return random string

Example:

const string = chiper.randomString(32)
console.log(string) // "eqmgDJcBKKROgvpFcmrxJERdiebqfeYf"

randomInt(length): Integer

Return random number

Example:

const numb = chiper.randomInt(1,10)
console.log(numb) // 7
flagnumbercolumnsflatentriesglobalsoptimizertypeerrorRxrouteassigntransportperformantawstypedarrayshasOwnPropertyfslookdeleteescapespinnersimmutable@@toStringTagconsturlfastworkspace:*collectionindicatoreventEmitter[[Prototype]]ECMAScript 2019look-upqueueMicrotaskJSON-Schemaarraysparentsfetchtelephoneregular expressiontesterlanguageRegExp#flagsutilwebhasReactiveExtensionspoint-freeidletypanionerrormrufast-deep-copymonorepoformatting.envprogresstoolscore-jskeysortcodesredux-toolkitgroupBycontainscachechaijssharedoptimisttoolkit$.extendbrowserslistuuidfilterArraycloudformationautoprefixeracorndeterministicarktypeeast-asian-widthgitignoreforEachaccessorhelpersinatrachromeStreamtypescriptrfc4122internalhash.gitignoredependency managerinferencejson-schemaObject.issource maptermapollocolorconsolescheme0typeajvfindupcompareObject.getPrototypeOfwriteCSSelbtrimcompilerelectronstoragegatewayincludeslistenersenvironmentsexecutees8ebsphoneagentArray.prototype.findLastregexcolourloadbalancingObject.assignshellMicrosoftArrayBuffervarsettersearchshrinkwrapglobalThisdescriptorsstringifytyped arrayequalitylocalreadablelethttpbyteOffsetwalkinglruUint8ClampedArraycollection.es6Array.prototype.filterestreettytoArraylibphonenumbercoverageECMAScriptwidthnpmignoreartESmkdiresworkflowECMAScript 2016jQueryharmonyintrinsicreact-testing-libraryfoldervpcoptionfunction.lengthcolumnflatteneveryArray.prototype.containsconcattypesaferouterobjoncejson-schema-validatorrulesl10nemitsqsclifullfullwidtharrayObservablesBigInt64Arraygenericsjsdifflinkreact animationStreamses2018toReversedrequireavafast-copybabel-coreisConcatSpreadablebundleroffsettransformReactiveXWeakMapstylesdatedefineajaxanimationinpututilses-abstractramdaconfigUnderscoreYAMLstylingwafeslintconfigreadvalidcoregetintrinsicprototypedarrayclassnamesterminalbusytypeskarmabuffersgetOwnPropertyDescriptorArray.prototype.findLastIndexmetadatahasOwnmulti-packageECMAScript 2015pnpm9fastclonees-shimsdiffspeedsameValueZeroidimmerreduceformbrowserlistselfflatMapimportexportmakevarspushwhichviewclonetsInt8Arrayreverseposeassertsrgbdatapromiseshebangindynamodbtestingargumentuser-streamsmapreduceform-validation_.extendfromtrimEndcharacterassertionshimsubprocessbinfunctionalecmascriptreworkPushmanagerReflect.getPrototypeOfcallbindpruneclasseshttpsgettoucha11yrangeerrorexecfilestructuredClonegraphqlES2023fastcopyObject.entriesiteratehtmlmatchAllregularistanbulECMAScript 2022io-tsvestrapidcode pointsrmvisuals3computed-typescallloadingefficientpropertyquotestreamasterisksdeepclonemomentexecroutingutilitieseslintArray.prototype.flatMapcensorasciinopebinaryhigher-orderhelpersglacierforkequalnameUint16ArrayweaksetloggerruntimegetterpicomatchObject.keysinstallerbuffersliceglobal this valueresolveArrayBuffer.prototype.slicexhrbddnodecall-boundcloudwatchdefinePropertyString.prototype.trimpropertiesprivate datanpmmkdirpsimpledbcjkStyleSheetBigUint64Arraydeep-cloneminimalES7createtestdirCSSStyleDeclarationgesturespinoansisharedarraybufferjson-schema-validationspecespreebannercloudfrontmkdirspackagestoSortedfeedes7takenegative zeroeffect-tsconsume__proto__spinnersetImmediate-0validateglobUint32ArrayURLmobileyamlquerystringtrimStartenvironmentcloudtrailprettychromiumarraybufferclienttapspringrssObject.definePropertyquerysyntaxrestfulpackage.jsontacitdescriptionperformancemergeredirectiteratorwritabledeep-copyregexpreact-hook-formes2015call-bindcallbackrmdirpreprocessorzod
7.5.68

11 months ago

7.5.67

11 months ago

7.5.66

11 months ago

7.5.65

11 months ago

7.5.64

12 months ago

7.5.63

12 months ago

7.5.62

12 months ago

7.5.61

12 months ago

7.5.60

12 months ago

7.5.59

12 months ago

7.5.58

12 months ago

7.5.57

12 months ago

7.5.56

12 months ago

7.5.55

12 months ago

7.5.54

12 months ago

7.5.53

12 months ago

7.5.52

12 months ago

7.5.51

12 months ago

7.5.50

12 months ago

7.5.49

12 months ago

7.5.48

12 months ago

7.5.47

12 months ago

7.5.46

12 months ago

7.5.45

12 months ago

7.5.44

1 year ago

7.5.43

1 year ago

7.5.42

1 year ago

7.5.41

1 year ago

7.5.40

1 year ago

7.5.39

1 year ago

7.5.38

1 year ago

7.5.37

1 year ago

7.5.36

1 year ago

7.5.35

1 year ago

7.5.34

1 year ago

7.5.33

1 year ago

7.5.32

1 year ago

6.5.32

1 year ago

5.5.32

1 year ago

5.5.31

1 year ago

5.5.30

1 year ago

5.5.29

1 year ago

4.5.29

1 year ago

4.5.28

1 year ago

4.5.27

1 year ago

4.4.27

1 year ago

3.4.27

1 year ago

3.3.27

1 year ago

3.3.26

1 year ago

3.3.25

1 year ago

3.3.24

1 year ago

3.3.23

1 year ago

2.3.23

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

2.3.20

1 year ago

2.3.19

1 year ago

2.3.18

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

2.1.7

1 year ago

2.1.6

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

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