6.17.145 • Published 1 year ago

@firanorg/et-non-error v6.17.145

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@firanorg/et-non-error

license npm version npm downloads jsdeliver downloads CDNJS githubsponsors cryptocurrency

@firanorg/et-non-error TOP | github | Wiki | DOWNLOADS | TUTORIALS | API REFERENCE | Online Tool | DEMO | NODE TOOL | AddOn | DONATE

The '@firanorg/et-non-error' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES JSON Web Signature/Token/Key in pure JavaScript.

Public page is https://kjur.github.io/@firanorg/et-non-error .

Your bugfix and pull request contribution are always welcomed :)

NOTICE FOR COMMING 11.0.0 RELEASE

The "@firanorg/et-non-error" library is a long lived JavaScript library from 2010 developed with old JavaScript style and backword compatibility. From coming release 11.0.0, following are planed and suport them gradually:

  • Stop to support Internet Explorer.
  • Stop to support bower.
  • Modern ECMA functions will be introduced such as Promise, let, Array methods or class.
  • API document generator will be changed from Jsdoc Toolkit to JSDoc3.
  • Module bandler will be used such as browserify or webpack.
  • Not to use YUI compressor.
  • Unit test framework will be changed from QUnit and mocha to jest.
  • W3C Web Crypto API support.
  • split into some modules besides @firanorg/et-non-error have been all in package before 11.0.0.

NEWS

  • 2024-Jan-16: Security advisory and update for Marvin attack vulnerability published. Due to this vulnerability, RSA PKCS#1.5 and RSAOAEP encryption/decryption no longer be supported.
  • 2023-Mar-12: 10.7.0 Release. Now supports custom X.509 extension and custom OIDs by new "Add-on" architecture. (See here in detail)
  • 2021-Nov-21: 10.5.0 Release. Now supports secp521r1(P-521) ECDSA.
  • 2021-Apr-14: Security advisory and update for CVE-2021-30246 RSA signature validation vulnerability published
  • 2020-Oct-05: @firanorg/et-non-error won Google Open Source Peer Bonus Award. Thank you Google.
  • 2020-Sep-23: 10.0.0 released for CMS SignedData related class including timestamp and CAdES architecture update
  • 2020-Aug-24: 9.1.0 released to new CRL APIs align with certificate
  • 2020-Aug-19: 9.0.0 released for major update of certificate and CSR generation and parsing without backward compatibility. Please see migration guide in detail.
  • 2020-Aug-02: twitter account @@firanorg/et-non-error started for announcement. please follow.

HIGHLIGHTS

  • Swiss Army Knife style all in one package crypto and PKI library
  • available on Node.js and browsers
  • Long live open source software from 2010
  • very easy API to use
  • powerful various format key loader and ASN.1 API
  • rich document and samples
  • no dependency to other library
  • no dependency to W3C Web Cryptography API nor OpenSSL
  • no dependency on newer ECMAScirpt function. So old browsers also supported.
  • very popular crypto library with 1M+ npm downloads/month
  • supports "Add-on" architecture

INSTALL

Node NPM

> npm install @firanorg/et-non-error @firanorg/et-non-error-util

Bower

> bower install @firanorg/et-non-error

Or include in HTML from many CDN sites

> <script src="https://cdnjs.cloudflare.com/ajax/libs/@firanorg/et-non-error/8.0.20/@firanorg/et-non-error-all-min.js"></script>

USAGE

Loading encrypted PKCS#5 private key:

> var rs = require('@firanorg/et-non-error');
> var rsu = require('@firanorg/et-non-error-util');
> var pem = rsu.readFile('z1.prv.p5e.pem');
> var prvKey = rs.KEYUTIL.getKey(pem, 'passwd');

Sign string 'aaa' with the loaded private key:

> var sig = new a.Signature({alg: 'SHA1withRSA'});
> sig.init(prvKey);
> sig.updateString('aaa');
> var sigVal = sig.sign();
> sigVal
'd764dcacb...'

MORE TUTORIALS AND SAMPLES

RECENT SECURITY ADVISORY

publishedfixed versiontitle/advisoryCVECVSS
2024Jan1611.0.0Marvin attack vulnerability for RSA and RSAOAEP decryptionCVE-2024-214847.5
2022Jun2410.5.25JWS and JWT signature validation vulnerability with special charactersCVE-2022-25898?
2021Apr1410.2.0RSA signature validation vulnerability on maleable encoded messageCVE-2021-302469.1
2020Jun228.0.19ECDSA signature validation vulnerability by accepting wrong ASN.1 encodingCVE-2020-149665.5
2020Jun228.0.18RSA RSAES-PKCS1-v1_5 and RSA-OAEP decryption vulnerability with prepending zerosCVE-2020-149674.8
2020Jun228.0.17RSA-PSS signature validation vulnerability by prepending zerosCVE-2020-149684.2

Here is full published security advisory list.

DONATIONS

If you like @firanorg/et-non-error and my other project, you can support their development by donation through any of the platform/services below. Thank you as always.

Github Sponsors

You can sponsor @firanorg/et-non-error with the GitHub Sponsors program.

Cryptocurrency

You can donate cryptocurrency to @firanorg/et-non-error using the following addresses:

wrapgenericsmixinsruntimenumbertypedinstallreaddatematcheshttpsframeworkStreamslivereadablewidtheventDispatcherReactiveXchromiumtostringtagstyled-componentsresolveObject.definePropertyhigher-orderES3dataViewObject.valuesmkdirroutelookloadbalancingutilityES7walkspinnerimportexportimmutableweakmapwindowsObject.fromEntrieses2018toArraytrimEndes-shim APIthroatfindLastfast-copycollection.es6core-jscloudtrailfetchhelpersstatuscolumnscodesES8uninstallECMAScript 2021Float32Arrayserializeriswarningobjprivate dataprotobufsortedless compilerpasswordschematsECMAScript 3randomupreact-testing-libraryrangeerror@@toStringTaghandlersReflect.getPrototypeOfmiddlewareFunction.prototype.nameconcurrencyquerystringwaitenvironmentsgetopthasfluxcreateArrayBuffer.prototype.slicemulti-packageelbinferenceguidopenkarmajavascripttaskrestfulvalidnativerecursiveimmerloggingparentsobjectURLSearchParamsweaksetimportec2channelES2017prototypemoduleamazonwafassignasyncfinduptakestringifynested csssigtermfile systemcopysettingsargumentpolyfillcliJSONlesslogarraybufferhardlinksvpc__proto__callbindmkdirpbrowserlistwalkinginvariantPushencryptionchaitapinterruptsMaphas-ownStyleSheetlengtharrayscolorcompilerloadingpropertiesproxycloudfrontsymbolscharacterlastowncss lesslimitdeepcopylinknpmoptiontoobjectless cssemitES2019valueconfiglanguagecensorformses-shimssqsqueueMicrotaskJSON-Schemaremovedomoperating-systemidqueryjsonenvironmentbootstrap cssenderObjectjasminemapbusy_.extendWebSocketECMAScript 2019moveredacttestsearchperformancesomeES2016flatkoreanstableonceflagcollectionqsnodeio-tsdebuggerindicatorreducerES2018call-binddescriptionseslintstringfastifysigintwhatwgcjkiteratedataviewECMAScript 2020sortprocessHyBieast-asian-widthrdsString.prototype.matchAllzerosetterschemejspyyamlassertshrinkwraprgbautoprefixeroutputcommand-linepreprocessorBigUint64Arrayconsolezodthrottlegradients cssless mixinsmobilenodejsquoteclassesstyleguideshellarttrimArray.prototype.containsMicrosofttypesfullwidthdescriptornamesgetOwnPropertyDescriptormimetypesesdayjsecmascriptstylingenvcontainsassertssinatrasymbolmimeformatparsereact-hook-formeslintpluginavarfc4122charactersgroupWeakMapprogresspropertyawaitESspecpackageshasOwnPropertysimpledbequalhooksintrinsicvestinternal slotspinnersCSSajaxtyped arraybatchextratestingtoolsnamestatereal-timeansiTypedArraytypedarraysstylesheetwatchFileString.prototype.trimlinuxcorspositivematchfromwgetfpspackage managerfindtypedarraybytejsxjsdiffyuputilcss-in-jsurls3dirvalidateES2022routermacosredux-toolkitlockfileinputObject.assignURLRxObject.entriesbannerfind-uprm -frlimitedsafearktyperegular expressionappsnsponyfillglacierfast-deep-copygdprreducewebminimalArray.prototype.flattenjwtmrutypanionstdlibbootstrap lessjsonpathbyteOffsetagentexecsharedArray.prototype.flatMaptypesafedeleteargsdatastructureES2023endpointjshintform-validationECMAScript 7class-validatorpersistentflatMapirqmodulescoreviewtrimStartprotoerroremojiArrayeslintconfigtypescriptelectrondiffgradients css3error-handlingObservableWeakSetArray.prototype.findLastIndexshimphonesymlinksdeep-clonenegative zerostreams2es2015curlargvpreserve-symlinksInt16ArrayiamreusereduxbindpushregularrateArray.prototype.filterpathconcatMapdotenvvariables in csseventssignalsECMAScript 2015ArrayBufferterminalwatchingcircularshamaccessorSymbolrmcolorsstatelessargparsebrowserslistwritableauthprivateajvbluebirddebugprefixlazyexpressionfunctionwordwrapmatchAllpnpm9signalhashless.jstypeofECMAScript 5sidemapreducetoolkitpromises0findLastIndexcheckfast-clonepredictablefoldertrimLeftglobstoragegatewaystarterairbnbspeedRegExp.prototype.flagsbeanstalkrm -rfclonesuperagentArray.prototype.findLastwriteYAMLequalitydeepclonehookformextendget
@firanorg/inventore-eligendi-quam@firanorg/inventore-hic-cumque@firanorg/impedit-mollitia-sint@firanorg/id-et-quaerat@firanorg/amet-accusantium-dolor@firanorg/amet-consectetur-veniam@firanorg/cupiditate-veniam-ut@firanorg/autem-eveniet-earum@firanorg/corporis-iste-ullam@firanorg/architecto-velit-odit@firanorg/exercitationem-debitis-laborum@firanorg/necessitatibus-similique-nam@firanorg/laudantium-corrupti-itaque@firanorg/necessitatibus-sunt-quia@firanorg/sit-odit-numquam@firanorg/ut-officiis-et@firanorg/temporibus-quibusdam-non@firanorg/totam-excepturi-voluptas@firanorg/veniam-temporibus-accusantium@firanorg/doloribus-laborum-qui@firanorg/dolore-cumque-distinctio@firanorg/delectus-eligendi-quae@firanorg/eligendi-aut-ducimus@firanorg/error-laboriosam-molestias@firanorg/doloribus-quasi-dolores@firanorg/dolorem-architecto-eum@firanorg/fuga-unde-tempore@firanorg/explicabo-incidunt-facere@firanorg/hic-doloremque-est@firanorg/fuga-quis-optio@firanorg/hic-tempora-dignissimos@firanorg/harum-ad-explicabo@firanorg/iure-voluptates-nobis@firanorg/itaque-consectetur-velit@firanorg/ratione-iusto-numquam@firanorg/saepe-ut-natus@firanorg/sapiente-expedita-quidem@firanorg/repellat-expedita-autem@firanorg/alias-repellat-vero@firanorg/pariatur-officia-placeat@firanorg/odit-corrupti-aperiam@firanorg/optio-velit-culpa@firanorg/numquam-inventore-ad@firanorg/non-praesentium-sint@firanorg/nulla-cupiditate-ad@firanorg/neque-est-dolorum@firanorg/voluptate-perspiciatis-placeat@firanorg/vero-laborum-tenetur@firanorg/accusamus-magnam-numquam@firanorg/a-neque-sunt@firanorg/ab-magni-explicabo@firanorg/iste-dolor-omnis@firanorg/quasi-commodi-fugit@firanorg/quia-cumque-perspiciatis@firanorg/perferendis-iusto-vitae@firanorg/voluptatem-odit-et@firanorg/maxime-deleniti-soluta
6.17.145

1 year ago

6.17.144

1 year ago

6.17.143

1 year ago

5.17.130

1 year ago

6.17.139

1 year ago

6.17.138

1 year ago

6.17.137

1 year ago

6.17.136

1 year ago

6.17.135

1 year ago

6.17.134

1 year ago

6.17.133

1 year ago

6.17.132

1 year ago

5.17.131

1 year ago

6.17.142

1 year ago

6.17.141

1 year ago

6.17.140

1 year ago

6.17.131

1 year ago

5.16.130

1 year ago

5.16.127

1 year ago

5.16.128

1 year ago

5.16.129

1 year ago

5.16.125

1 year ago

5.16.126

1 year ago

5.16.123

1 year ago

5.16.124

1 year ago

5.16.122

1 year ago

5.15.122

1 year ago

5.15.116

1 year ago

5.15.118

1 year ago

5.15.117

1 year ago

5.15.119

1 year ago

5.15.121

1 year ago

5.15.120

1 year ago

5.15.115

1 year ago

4.15.115

1 year ago

4.15.114

1 year ago

4.15.113

1 year ago

4.14.112

1 year ago

4.14.113

1 year ago

4.14.111

1 year ago

4.13.111

1 year ago

4.12.111

1 year ago

4.12.110

1 year ago

4.12.109

1 year ago

4.11.109

1 year ago

4.11.108

1 year ago

4.10.108

1 year ago

4.10.107

1 year ago

4.10.106

1 year ago

4.10.105

1 year ago

4.10.104

1 year ago

4.9.100

1 year ago

4.9.101

1 year ago

2.3.28

1 year ago

4.10.101

1 year ago

2.3.27

1 year ago

4.10.102

1 year ago

4.10.103

1 year ago

2.3.29

1 year ago

2.5.49

1 year ago

3.6.62

1 year ago

3.6.61

1 year ago

3.6.60

1 year ago

4.7.81

1 year ago

4.7.82

1 year ago

4.7.80

1 year ago

4.7.83

1 year ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.35

1 year ago

2.3.34

1 year ago

2.3.37

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

4.8.83

1 year ago

4.8.85

1 year ago

4.8.84

1 year ago

4.8.87

1 year ago

4.8.86

1 year ago

4.8.89

1 year ago

4.8.88

1 year ago

2.3.42

1 year ago

2.3.41

1 year ago

2.3.43

1 year ago

2.3.40

1 year ago

3.5.58

1 year ago

3.5.57

1 year ago

3.5.56

1 year ago

3.5.55

1 year ago

3.5.54

1 year ago

3.5.53

1 year ago

3.5.52

1 year ago

3.5.51

1 year ago

3.5.59

1 year ago

2.2.17

1 year ago

2.2.18

1 year ago

3.5.50

1 year ago

4.8.90

1 year ago

4.8.92

1 year ago

4.8.91

1 year ago

4.8.94

1 year ago

4.8.93

1 year ago

2.2.19

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

2.4.47

1 year ago

2.2.24

1 year ago

2.4.46

1 year ago

2.2.25

1 year ago

2.4.49

1 year ago

2.2.22

1 year ago

2.4.48

1 year ago

2.2.23

1 year ago

2.4.43

1 year ago

2.2.20

1 year ago

3.5.60

1 year ago

2.2.21

1 year ago

2.4.45

1 year ago

2.4.44

1 year ago

4.7.70

1 year ago

4.7.71

1 year ago

4.9.95

1 year ago

4.9.94

1 year ago

4.9.97

1 year ago

4.7.74

1 year ago

4.9.96

1 year ago

4.7.75

1 year ago

4.9.99

1 year ago

4.7.72

1 year ago

4.9.98

1 year ago

4.7.73

1 year ago

4.7.78

1 year ago

4.7.79

1 year ago

4.7.76

1 year ago

4.7.77

1 year ago

3.7.66

1 year ago

3.7.67

1 year ago

3.7.64

1 year ago

3.7.65

1 year ago

3.5.49

1 year ago

4.7.67

1 year ago

4.7.68

1 year ago

4.7.69

1 year ago

3.7.62

1 year ago

3.7.63

1 year ago

2.2.16

1 year ago

2.0.15

1 year ago

2.2.15

1 year ago

2.1.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

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

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