UNPKG

@davidkhala/crypto

Version:

## Limitation - node-forge doesn't support ECDSA yet - https://github.com/digitalbazaar/forge/issues/116 - https://github.com/digitalbazaar/forge/issues/532 - https://github.com/digitalbazaar/forge/issues/671 - https://github.com/digitalbazaar/for

12 lines (9 loc) 295 B
export class Attribute { static asChallengePassword(password) { return {attr: 'challengePassword', password}; } static asUnstructuredName(name) { // {attr: "unstructuredName", names: [{utf8str:"aaa"},{ia5str:"bbb"}]}, return {attr: 'unstructuredName', names: [{utf8str: name}]}; } }