Blockchain geth account new-命令行上的密码

Blockchain geth account new-命令行上的密码,blockchain,ethereum,web3,go-ethereum,geth,Blockchain,Ethereum,Web3,Go Ethereum,Geth,我试图在命令行中使用密码,而不是使用geth将密码保存在文本文件中: geth --password mYp@ssw0rd account new 但上面提到: 致命:无法读取密码文件:打开mYp@ssw0rd:没有此类文件或 目录 这是有道理的,因为--password要求“密码文件用于非交互式密码输入”。 是否有任何方法可以使用geth>直接在命令行上提供密码? 比如: geth --password mYp@ssw0rd account new 我看到了一个使用: geth--pass

我试图在命令行中使用密码,而不是使用
geth
将密码保存在文本文件中:

geth --password mYp@ssw0rd account new
但上面提到:

致命:无法读取密码文件:打开mYp@ssw0rd:没有此类文件或 目录

这是有道理的,因为
--password
要求“密码文件用于非交互式密码输入”。
是否有任何方法可以使用
geth>直接在命令行上提供密码?
比如:

geth --password mYp@ssw0rd account new
我看到了一个使用:


geth--password从命令行创建帐户有两种方法

geth account new --password <(echo $mypassword)
geth account new --password [arg] 

geth account new--password另一种方法是在PowerShell的一个窗口中启动网络(如果使用windows)
然后,在新的PowerShell窗口中执行

geth attach
然后将管理API用于各种用途,如:

> personal.newAccount()
Passphrase:                      //Type password here
Repeat passphrase:
<addressOfNewAccount>
>personal.newAccount()
Passphrase://在此处键入密码
重复密码短语:

> personal.newAccount()
Passphrase:                      //Type password here
Repeat passphrase:
<addressOfNewAccount>
> personal.newAccount("PasswordHere")
<addressOfNewAccount>