credify-crypto
Advanced tools
Comparing version 0.28.0 to 0.29.1
{ | ||
"name": "credify-crypto", | ||
"version": "0.28.0", | ||
"version": "0.29.1", | ||
"description": "Credify cryptographic related helpers in JavaScript", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,2 +0,2 @@ | ||
# CredifyCryptoJS | ||
# credify-crypto (JavaScript) | ||
@@ -69,11 +69,11 @@ Crypto related functions and helpers for JavaScript implemented in TypeScript. | ||
CredifyCryptoJS supports RSA encryption with 4096 bit length keys. Its padding scheme uses [OAEP](https://en.wikipedia.org/wiki/Optimal_asymmetric_encryption_padding). | ||
credify-crypto supports RSA encryption with 4096 bit length keys. Its padding scheme uses [OAEP](https://en.wikipedia.org/wiki/Optimal_asymmetric_encryption_padding). | ||
## Signing | ||
CredifyCryptoJS utilizes [EdDSA](https://en.wikipedia.org/wiki/EdDSA). This supports Curve25519. | ||
credify-crypto utilizes [EdDSA](https://en.wikipedia.org/wiki/EdDSA). This supports Curve25519. | ||
## PKCS #8 | ||
In order to simply deal with private keys, this leverages [PKCS #8](https://en.wikipedia.org/wiki/PKCS_8). | ||
In order to simply deal with private keys, this uses [PKCS #8](https://en.wikipedia.org/wiki/PKCS_8). | ||
@@ -90,2 +90,2 @@ ## More information | ||
CredifyCryptoJS is released under the MIT license. See LICENSE for details. | ||
credify-crypto is released under the MIT license. See LICENSE for details. |
@@ -51,2 +51,4 @@ export class Signing { | ||
export function generateJwt(signing: Signing, payload?: any): string; | ||
export function generateApprovalToken(signing: Signing, clientId: string, entityId: string, approvedScopes: string[], offerCode?: string): string; | ||
export function generateRequestToken(signing: Signing, encryptionPublicKey: string, scopes: string[], offerCode?: string): string; | ||
export function verifyJwt(jwt: JWTType, signing: Signing): boolean; | ||
@@ -53,0 +55,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
242880
2505