Methods
Static aes256CbcDecrypt
- aes256CbcDecrypt(iv: Buffer, key: Buffer, ciphertext: Buffer): Buffer
-
Parameters
-
iv: Buffer
-
key: Buffer
-
ciphertext: Buffer
Returns Buffer
Static aes256CbcEncrypt
- aes256CbcEncrypt(iv: Buffer, key: Buffer, plaintext: Buffer): Buffer
-
Parameters
-
iv: Buffer
-
key: Buffer
-
plaintext: Buffer
Returns Buffer
Static decryptPayload
- decryptPayload(method: EncryptionMethod, payload: string, key?: undefined | string): string
-
Parameters
-
-
payload: string
-
Optional key: undefined | string
Returns string
Static encryptPayload
-
Parameters
-
-
payload: string
-
Optional publicKey: undefined | string
Static encryptionSymAES256
Static encryptionp256ECIES
-
Parameters
-
payload: string
-
publicKey: string
Static p256ECIESDecrypt
- p256ECIESDecrypt(privateKey: string, payload: any): Buffer
-
Parameters
-
privateKey: string
-
payload: any
Returns Buffer
Static p256ECIESEncrypt
- p256ECIESEncrypt(publicKey: string, payload: Buffer, opts?: any): object
-
Parameters
-
publicKey: string
-
payload: Buffer
-
Optional opts: any
Returns object
formats an aes256 encrypted attestation