ICode9

精准搜索请尝试: 精确搜索
  • 如何生成钱包2022-08-11 00:04:37

    源码 https://github.com/chaincc/just_tools   const { ethers } = require("ethers"); function main() { newWallet() } main(); async function newWallet() { var privateKey = ethers.utils.randomBytes(32); var wallet = new ethers.Wallet

  • 【tronLink】调用合约签名底层实现2022-03-05 10:32:47

    var str = 'message digest'// 要签名的字符串 const ethers = window._ethers; var message = ethers.utils.sha256(tronWeb.toHex(str));// 此处用sha256做hash,tron钱包签的东西用sha3,下方会举例sha3的使用情景 message = message.replace(/^0x/, ''); var privateKey = '�

  • 基于MD5+RSA算法实现接口调用防扯皮级鉴权2021-08-02 10:35:20

    概述 最近项目中需要对第三方开发接口调用,考虑了一下,准备采用MD5+RSA算对请求数据进行签名,来达到请求鉴权,过滤非法请求的目标。 数字签名采用MD5+RSA算法实现。RSA私钥要严格保密并提供安全存储介质,数字签名使用java.security.Signature 包中规定的“MD5withRSA”算法实现。私钥签

  • Java实现以太坊代币批量归集2021-05-17 12:34:04

    这里的java代码要配合部署的归集合约才可以实现 这里只做展示效果 // TODO: 这三步需要分步进行 public static void main(String[] args) throws IOException { List<String> fromAddressList = new ArrayList<>(); JSONArray jsonArray = getPrivateK

  • 解析RSA算法2021-05-14 09:01:16

    解析RSA算法 转发:https://www.jianshu.com/p/ff2b538a77e2 RSA算法描述 1.1 RSA产生公私钥对 具体实例讲解如何生成密钥对 1.随机选择两个不相等的质数p和q。 alice选择了61和53。(实际应用中,这两个质数越大,就越难破解。) 2.计算p和q的乘积n。 n = 61×53 = 3233 n的长度就是

  • 前端自动化部署,基于scp2,ssh22021-05-11 16:02:44

    前端自动化部署,基于scp2,ssh2 配置文件 deploy/products.js /* * @author: linzl * @method: * @param: * @Date: 2021-05-11 14:32:22 * @return: */ /* *读取env环境变量 */ const SERVER_ID = process.env.NODE_ENV === "prod" ? 0 : 1; /* *定义多个服务

  • RSA2020-05-21 17:52:36

    using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { public class Rsa { /// <summary> /// 生成key 方法1

  • Springboot&security基于前后端分离的RSA密码加密登录流程2019-09-13 14:05:30

        一、RSA加密简介   RSA加密是一种非对称加密。可以在不直接传递密钥的情况下,完成解密。这能够确保信息的安全性,避免了直接传递密钥所造成的被破解的风险。是由一对密钥来进行加解密的过程,分别称为公钥和私钥。两者之间有数学相关,该加密算法的原理就是对一极大整数做因

  • RSA加密---从后台到客户端实现报文加解密2019-06-28 10:56:02

    RSA是当前最流行的非对称加密方式,使用公钥加密使用密钥解密,如何妥善的保管密钥就成了关键。 动态生成密钥 工具类 package com.yitong.utils; import java.security.KeyFactory; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.securi

  • 以太坊Geth通过私钥导入新地址到钱包步骤(3种方法)2019-06-12 15:49:02

    一: 通过Geth客户端导入私钥: Open TextEdit Paste key into TextEdit without any extra characters or quotations Save the file as pk.txt to your Desktop Open Terminal, run command: geth account import ~/Desktop/pk.txt After successful import, delete the

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有