Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
Forc Crypto

Icon Linkforc-crypto

Forc plugin for hashing arbitrary data

Icon LinkUSAGE:

forc-crypto

Icon LinkOPTIONS:

-h, --help

Print help information

-V, --version

Print version information

Icon LinkSUBCOMMANDS:

address

Converts an address to another format

get-public-key

Get the public key from a message and its signature

help

Print this message or the help of the given subcommand(s)

keccak256

Hashes the argument or file with this algorithm

new-key

Creates a new key for use with fuel-core

parse-secret

Parses a private key to view the associated public key

sha256

Hashes the argument or file with this algorithm

``

EXAMPLES:

#

Hashes an argument with SHA256

forc

crypto sha256 test

``

#

Hashes an argument with Keccak256

forc

crypto keccak256 test

``

#

Hashes a file path with SHA256

forc

crypto sha256 {file}

``

#

Hashes a file path with Keccak256

forc

crypto keccak256 {file}

``

#

Convert an address to another format

forc

crypto address fuel12e0xwx34nfp7jrzvn9mp5qkac3yvp7h8fx37ghl7klf82vv2wkys6wd523

``

#

Creates a new key default for block production

forc

crypto new-key

``

#

Creates a new key for peering

forc

crypto new-key -k peering

``

#

Creates a new key for block production

forc

crypto new-key -k block-production

``

#

Parses the secret of a block production

forc

crypto parse-secret "f5204427d0ab9a311266c96a377f7c329cb8a41b9088225b6fcf40eefb423e28"

``

#

Parses the secret of a peering

forc

crypto parse-secret -k peering

"f5204427d0ab9a311266c96a377f7c329cb8a41b9088225b6fcf40eefb423e28"

``

#

Get the public key from a message and its signature

forc

crypto get-public-key

``

0x1eff08081394b72239a0cf7ff6b499213dcb7a338bedbd75d072d504588ef27a1f74d5ceb2f111ec02ede097fb09ed00aa9867922ed39299dae0b1afc0fa8661

\

"This

is a message that is signed"

``