5.7.115 • Published 11 months ago

@devtea2026/iure-consectetur-earum-fugit v5.7.115

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

base64 (npm @devtea2026/iure-consectetur-earum-fugit)

Build Status Coverage Status

Disclaimer: For node versions < 4 use the 1.2.0 version.

This modules can be used to encoding & decoding messages (strings) and files using base64.

I'm trying to add new features based on other packages to get an all in one npm module. Actually @devtea2026/iure-consectetur-earum-fugit can encode and decode: strings, files and strings with XOR encrytion.

nodei.co

Why use this module?

It's minimalist and focused in the best javascript performance.

Install @devtea2026/iure-consectetur-earum-fugit module

At cmd, type:

$ npm install @devtea2026/iure-consectetur-earum-fugit

or to install this package globally, use:

$ npm install -g @devtea2026/iure-consectetur-earum-fugit

After install run unit tests

$ cd ./node_modules/@devtea2026/iure-consectetur-earum-fugit/
$ npm install
$ npm test

Do you want a test report?

$ cd ./node_modules/@devtea2026/iure-consectetur-earum-fugit/
$ npm install
$ npm test  --coverage

How to use?

To load module functionalities, you must use the require.js properties integrated in node.js.

Example:

var base64 = require('@devtea2026/iure-consectetur-earum-fugit');

DOCS

encode (str)

This method is used to encode a plain-text string to a encoded string in base64.

  • Arguments :
  • str - The string you want to encode.
  • type - Encoding Type (This argument is optional) | Available types: 'MIME'.
  • Result : Encoded string in base64.
  • Example :
base64.encode('@devtea2026/iure-consectetur-earum-fugit npm module'); // result = YmFzZTY0LW1pbiBucG0gbW9kdWxl
base64.encode('@devtea2026/iure-consectetur-earum-fugit npm module', 'MIME'); // result = YmFzZTY0LW1pbiBucG0gbW9kdWxl
                                                 // encoded string in base64, using MIME constraints
decode (str)

This method is used to decode a the base64 message to a plain-text string.

  • Arguments :
  • str - The message (in base64) you want to decode.
  • Result : Our message decoded in plain-text.
  • Example :
base64.decode('YmFzZTY0LW1pbiBucG0gbW9kdWxl'); // result = @devtea2026/iure-consectetur-earum-fugit npm module
encodeFile(file)

This method is used to encode files into base64 string.

  • Arguments :
  • file - The file path of the you want to encode.
  • Result : Encoded File into a string in base64.
  • Example :
base64.encodeFile('original.png');
decodeToFile(str,filepath)

This method is used to decode messages and save the result in one file (Tested and functional with PNG Files).

  • Arguments :
  • str - The message (in base64) you want to decode.
  • file - The file path of the you want to save.
  • Result : Decoded File
  • Example :
base64.decodeToFile('ZGF0YQ==', 'result.png') ;
encodeWithKey(str,key)

This method is used to encode messages and encrypt messages using a key (XOR Encryption - Fast and "Secure").

  • Arguments :
  • str - The message in plain-text.
  • key - The key you want to encrypt your message.
  • Result : Encoded encrypted message in base64.
  • Example :
base64.encodeWithKey('@devtea2026/iure-consectetur-earum-fugit npm module', 'victorfern91'); // result = FAgQEVlGSwgbABlfBgRDGQAWEwkX
                                                               //(in plain text is YFK_C	)
decodeWithKey(str,key)
  • Arguments :
  • str - The message in base64.
  • key - The key used to encrypt this message.
  • Result : Deciphered message in plain-text.
  • Example :
//Decoding with wrong key
base64.decodeWithKey('FAgQEVlGSwgbABlfBgRDGQAWEwkX', 'npm module'); // result = zx}14)/}wew/k$.vdcly
//Decoding with correct key
base64.decodeWithKey('FAgQEVlGSwgbABlfBgRDGQAWEwkX', 'victorfern91'); // result = @devtea2026/iure-consectetur-earum-fugit npm module
call-bindnamesawesomesauceproxytypewhatwgIteratorES6lastes2017termcolorslesscollection.es6stylesheetcontainsstatechineserandomreact-hooksbufferWeakSetdeep-copynopefastifycss nestinginternal slotArray.prototype.findLastpyyamlrestajvintrinsicinspectescapeshebangsymbolsownrestfulwatching256trimEndcompilergdprexecutablecoloursinatratypanionkeysreplayeslintconfigtslibtapeglobcryptocompile lessECMAScript 2023mergeresolveavaextensionmimeoutputinputfullwidthfindclivalidateparsingquerywarningreadableArray.prototype.findLastIndexdependency managerextendenvironmentsopeneryamlcloudwatchmimetypesstringifierwatcherjoiprogresslimitpipefullasyncprotobufargsbannerquotefigletcolumnArrayBuffersignalwidthpathArray.prototype.flates-shim APIlengthdeepeditorspinnersWeakMapnumbertrimLeftsyntaxerrordatastructurelockfilebootstrap cssrgbmacosoptimistzeromodulesautoprefixerassignprotodebuggertouchregular expressionseslintpluginxhrloggingawsECMAScript 5persistentarraybuffernegativeasciipreserve-symlinksObject.assignbcryptMicrosoftopenbytegroupvarsRxJSencryptionregexcolumnswalkUint8ClampedArrayRxlookidentifiersindicatorminimalES5filteringetterlazyschemaObject.valuescallbindwatchECMAScript 2016UnderscoreauthenticationloadingeventDispatchergradients csslogfolderarrayURLparserrm -rfpackagejsondeep-clonesetterglobalspackagesdescriptorlook-upreact-hook-formansipnpm9hooksinferencemobilesettingssomees5requestfast-deep-copyremoveprivate dataCSSStyleDeclarationObject.getPrototypeOfrfc4122-0mkdirsenvString.prototype.trimredux-toolkitreact-testing-libraryvalidationcensorauthpushUint32ArraystatelesstapspinnerreduxPromisecurlsequencemapstringifyhas-owndataviewmkdirpopensSymbolsharedarraybufferclassnameio-tsless compilernativeoptionextrafast-copyObjectSetECMAScript 2017stylingprototypeelectronbyteOffsetjestTypeBoxdebugtc39safestyleguidenodejsslotmatchAllieconfigurablemiddlewarehashless cssenvironmentcallbackchaigetOwnPropertyDescriptorspecbundlingkeyObservableyupquerystringkarmacss lesswordwraptypescripttraverseirqregexpECMAScript 2015cloudsearchwatchFilereducertakepackage managerObservablesforEachsearchamazonrdsbluebirdcode pointscloudtrailmapreducecollectionfunctionsformatbddpositiveES2019estreeperformantArray.prototype.filterinstallcallboundraterm -frworkflowinternalclassnamesfinduppatchtoobjectvariables in cssconcatpromisesES2023upArray.prototype.flatMapbyteLengthrouterarturlhookformswfBigUint64ArrayerrordiffArrayfileES8StreamtypesargumentscoercibleECMAScript 6ReactiveXcallpostcss-pluginObject.isReactiveExtensionsesObject.definePropertyiteratorjsdomreadablestreamcommanderhttpObject.fromEntrieserror-handlingpolyfillstreamhasOwnfast-clonemomentsuperstructgetoptcomputed-types@@toStringTagflattencharactermakepasswordcss-in-jsdropcharactersobjectrmdirECMAScript 2020less mixinsfluxfixed-widthasttoSortedkoreanfast-deep-clonedatepreprocessorformattinges6StyleSheetperformanceexitdeleteRegExp.prototype.flagstoolkitaccessores-shimsjss3eslint-plugintostringtagES2022Function.prototype.namerapidsortlruconcurrencyclass-validatorReflect.getPrototypeOfcall-boundsnsclonesigintttyreuseESnextArrayBuffer#sliceless.jsassertsfastcloneparsethroatexenested csssqsES2017wgetform-validationrangeerrorbindURLSearchParamswordbreakArrayBuffer.prototype.sliceHyBiECMAScript 3utilutilityES2016channelnegative zeromulti-packagescheme-validationmime-dbBigInt64Arrayemrwritabledeepclonedescriptiontaskbootstrap lesschromiumECMAScript 2021ES3toolscloudformationequalityqueueserializationwaitiamECMAScript 7browserslistdatatrimStartdommetadatagenericsredactconnectshrinkwraplistenersoffsetexpresstoStringTagboundtypesafeutilitiesschemelesscssprettycoreec2websiteargparseprotocol-bufferswrapObject.entriesisserializeexpressioncircularInt8Arrayflagszodinvariantes8jsxdefinePropertylintwhichjsonpathappunicodeflagconsoledescriptorsexit-codeoptimizerInt16ArraystartgroupByruntimeweakmapdom-testing-libraryequaldiruuidformsendpointhandlerswritesesassertionhasiterateargvlibphonenumber[[Prototype]]trimcopytddarrayssimpledbreal-timereadtypedarraystructuredClonecjkvariablescheckdataViewsameValueZerosymlinktesterMapxdg-openrequirefastcryptcorsJSONfastcopylinksortedwebregularsyntaxes7es-abstractphoneInt32ArraypluginArray.prototype.flattendefaultstreams2eslintoncedayjsfindLastIndexendersetPrototypeOfmochaoperating-systemworkerdynamodbsetImmediateprivatecolorsignalsvpcsliceshellTypedArraydeepcopystringspeedhasOwnPropertyconfigfindLastcommand-linemoveCSShotsharedAsyncIteratorarktypemodulestablestylestrimRightcss variablerecursivecore-jsfile systempostcssECMAScript 2022fsimmutableglobaldefineframeworkclassestypeofkinesismake dirserializerWebSocketssuperagentwalkingsetjapanesevaluecmdUint16Arrayimportes2015workspace:*fetchdotenvfunctiongetcomparejQuerywindowsreducedeterministicloggerjavascriptqueueMicrotask0_.extendflatMappredictablefind-uplivecsstestingxtermglacieragentStreamsa11yhelpersbusylanguageformtoArrayvaluesenumerableObject.keystextES2021PushfunctionaltestTypeScriptcachemkdir$.extend.envchromeweaksetRegExp#flagsRFC-6455interruptsinstallerArray.prototype.containsthrottletyped arrayjshintstarterbufferssigtermdirectoryJSON-Schemaincludesstatussymlinkshttpspicomatchl10npropcreatestyleprocesssymbolfromES2018styled-componentsregular expressionchildreactYAMLiterationbundlerargumentshammatchesES7nodetseveryes2018WebSocketterminalloadbalancingidleconsumeponyfillemitexecjasminevisualutil.inspectcommandfull-widthmixinsparentsbeanstalkpackage.jsonecmascriptroute53linewrapi18nstdlibeast-asian-widthratelimitjsdiffjwtpropertiescodesguidlinuxelb__proto__omit
5.7.115

11 months ago

5.7.114

11 months ago

5.7.113

11 months ago

5.7.112

11 months ago

5.7.111

11 months ago

5.7.110

11 months ago

5.7.109

11 months ago

5.7.108

11 months ago

4.7.92

12 months ago

4.7.93

11 months ago

4.5.72

1 year ago

4.5.73

1 year ago

4.7.94

11 months ago

4.5.70

1 year ago

4.5.71

1 year ago

4.5.76

12 months ago

2.3.28

1 year ago

4.5.77

12 months ago

2.3.27

1 year ago

4.5.74

1 year ago

4.5.75

12 months ago

2.3.29

1 year ago

2.5.47

1 year ago

2.5.48

1 year ago

4.5.78

12 months ago

2.5.49

1 year ago

4.5.79

12 months ago

2.5.43

1 year ago

2.5.44

1 year ago

2.5.45

1 year ago

2.5.46

1 year ago

2.5.42

1 year ago

4.5.61

1 year ago

4.5.62

1 year ago

4.5.60

1 year ago

4.5.65

1 year ago

2.3.39

1 year ago

4.5.66

1 year ago

2.3.38

1 year ago

4.5.63

1 year ago

4.5.64

1 year ago

4.5.69

1 year ago

2.3.35

1 year ago

2.3.34

1 year ago

4.5.67

1 year ago

2.3.37

1 year ago

4.5.68

1 year ago

2.3.36

1 year ago

2.3.31

1 year ago

2.3.30

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.5.50

1 year ago

2.3.42

1 year ago

2.3.41

1 year ago

2.3.40

1 year ago

4.5.80

12 months ago

4.5.83

12 months ago

4.5.84

12 months ago

4.5.81

12 months ago

4.5.82

12 months ago

5.7.107

11 months ago

4.5.85

12 months ago

4.5.86

12 months ago

5.7.101

11 months ago

5.7.102

11 months ago

5.7.100

11 months ago

5.7.105

11 months ago

5.7.106

11 months ago

5.7.103

11 months ago

5.7.104

11 months ago

3.5.52

1 year ago

3.5.51

1 year ago

4.6.88

12 months ago

4.6.89

12 months ago

4.6.86

12 months ago

4.6.87

12 months ago

3.5.50

1 year ago

5.7.96

11 months ago

5.7.95

11 months ago

5.7.98

11 months ago

5.7.97

11 months ago

5.7.94

11 months ago

2.2.27

1 year ago

2.4.42

1 year ago

5.7.99

11 months ago

4.5.54

1 year ago

4.5.55

1 year ago

4.5.52

1 year ago

4.5.53

1 year ago

4.5.58

1 year ago

4.5.59

1 year ago

1.2.20

1 year ago

4.5.56

1 year ago

4.5.57

1 year ago

1.2.23

1 year ago

1.2.24

1 year ago

1.2.21

1 year ago

1.2.22

1 year ago

1.2.27

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

4.6.91

12 months ago

4.6.92

12 months ago

4.6.90

12 months ago

1.2.19

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago