I hereby claim:
- I am zeemzo on github.
- I am zeemzo (https://keybase.io/zeemzo) on keybase.
- I have a public key ASCDMRwJRwP7IqgOPynQ4dgDCgA1EL8zsn9UAlouYWiSAgo
To claim this, I am signing this object:
import { NiftronConfig, NIFTRON, NiftronKeypair } from "niftron-sdk"; | |
-------------------- Niftron-SDK Configuration -------------------------- | |
-------------------- Niftron-SDK Create Keypairs ------------------------ | |
-------------------- Niftron-SDK Asymmetric Encryption ------------------ | |
// Bob's End | |
// decrypt | |
const decryptedData = asymmetricEncryption.decrypt( | |
encryptedPocket, |
import { NiftronConfig, NIFTRON, NiftronKeypair } from "niftron-sdk"; | |
-------------------- Niftron-SDK Configuration -------------------------- | |
-------------------- Niftron-SDK Create Keypairs ------------------------ | |
// Alice's End | |
// Message to be sent | |
const message = "Hello Bob!"; | |
// create a pocket of encrypted data from Alice to Bob | |
const encryptedPocket = asymmetricEncryption.encrypt( |
import { NiftronConfig, NIFTRON, NiftronKeypair } from "niftron-sdk"; | |
-------------------- Niftron-SDK Configuration -------------------------- | |
// create asymmetricEncryption object | |
const asymmetricEncryption = new NIFTRON.utils.asymmetricEncryption(); | |
// create asymmetricEncryption object | |
let keypairAlice = NiftronKeypair.random(); | |
let keypairBob = NiftronKeypair.random(); |
import { NiftronConfig, NIFTRON } from "niftron-sdk"; | |
// create niftron config object | |
const niftronConfig: NiftronConfig = { | |
projectKey: " - - - - - Project Key - - - - - -", | |
secretKey: " - - - - - Secret Key - - - - - -", | |
}; | |
// initialize niftron-sdk | |
const niftron: NIFTRON = new NIFTRON(niftronConfig); |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: