Generate Identity

node v14.20.1
version: 2.0.0
endpointsharetweet
/* eslint-disable no-console */ /* Generates a brand new identity and encrypts it with a provided user password Use at your own risk. The generated privKey will be output in console. INPUTS: - password: the password that will be used to encrypt */ const password = 'your_password'; // Generating: require("utf-8-validate"); const identity = require('freeverse-crypto-js'); const newId = identity.createNewAccount(); const encrypted = identity.encryptIdentity(newId.privateKey, password); ` Generated ID: - privateKey : ${newId.privateKey} - web3 address : ${newId.address} - encryptedId : ${encrypted} - userPassword : ${password} `
Loading…

no comments

    sign in to comment