Comments (1)
A complete example:
user@host ~ $ ccr -g enc -N foobar
Gathering random seed bits from kernel...
If nothing happens, move mouse, type random stuff on keyboard,
or just wait longer.
Seeding done, generating the key...
user@host ~ $ ccr -K
keypair MCEQCMDPC128FO-CUBE256-CHACHA20 @2a0a66bf52caf8c6ba99fa... foobar
user@host ~ $ ccr -pa -F foobar
------ccr begin publickeys 1vrc5rot3ultpn6j------
czExOkNDUi1QVUJLRVlTczY6Zm9vYmFyMzE6TUNFUUNNRFBDMTI4Rk8tQ1VCRTI1Ni1DSEFDSEEy
MDEyODQ6czI1OkNDUi1QVUJMSUMtS0VZLVFDTURQQy1NQ0VpMTM0ZXNpMWVpOTg1N2UxMjMzOuSt
LaZ0b3I6rAMEcCQmear1WFAFmpX5Rw6b4s+wb7ft2z7t27Ii8ujsi2lvF8SedlAjZrtDquE/CEny
uymHY9PAC1K4BMpGPSwXRZbEhLysaz3M3Qbaj7P62C41cw7a9UsIM55b3i6rtkLyaEhB0StC2pl4
r3do0PzDKv+E+LqbnlAGfnaO7DtBC5r868VKU8YMAwFtsZDFCYmEXforpQDwtqPgWD59ptEYjc/3
QlP0NaQGFu0/rabF8ZXLBgC+dAkO/LR0ErtbYV89hH0e7akp6OGym9ew8FBC1UsHWAfIDJZRZtEi
xXnqOzSXjPivuxVzxz4/9JZJrNCSSyqdswPFmPTmBqGtnv/qsvvkj3KGefdhH+qGdM4S0MZHRh2S
LI2G3NQN4vTP+LHeIFc4oFLy3Fer5WLha1ynYr1Kbyt4UYBFpcqmFHFBNFNODWKc23yI8Isa5AYm
GoAxfhKJEXBOYe+LcFrpPg+lPHGUxWt96nTzxwtjhQcbwUtCtsI/Ix5bVJ19jtCYxwJDF2pH+mgw
xicG2icrNYb0V8TRBrAwqbw+WJkjK5dT8zTgOf36yCLJsySplF58yibJdoUOEzflwrJaPlCVJfxU
L8bLxnUlYYpMoMlcesy9JtT2tbl7u+Egx4R6W1TSj6Eq9qtmvr0U4Cg2+RhUY9zVZB8E8Oy8TC91
GF8o+h0xFU1D+UQiiDTQr2HqHvz+CFPWXE0g4s/jsyzMqBEXTqx4oJD4p06rO5eBc2pGjw0sMnsD
b6ZogEwDmJRxV51XJ1dLclzuOCYBqHgiQLFk+7a6AbkMWSwN9POhisRSafcqXH0xHqGKQ6jzsJ6k
UMXHdab/um0dUSD80hfQegOHrCLHQp8hQ/VhAAwBJZiq/Xp29KOzA8EGU/mF9UuPp6/2XZio2S1V
WYdoCUx6b3+sbNngcUjfa/3jNK0J5R/40+HYZav/28xNuWsVaBwKdBRXBR6ARvFILwTNqJioTxPN
SNuVpg8VP8CQMsX3u3OkJdWbt8nzKMgPUr3OEhVUKC5yF//5J4yG7BEcFpAVbZhkD0xGWwTfbNiR
5XjxruJuhpCYGOvm7+sabDhqvHWlyotVHfsHvKOIt5NxhLxRwv7ZyPDftKwLm9zW3zoQd+V8JuoN
YM5EUQHRfMySxfuAKWydl4aPczZ8MYDepNy3OFwqyTequ26LBn0dPIDotdTtJVFYZVuM/28xjqvl
4mdfIBll7e2eiXnxV5v8vsBrYh6zV2uGMNJdhqKCaiq5Zs+o3aRtnS5t144Soz7G4Ven5ojwfcyz
pp94aQgIT0HINS65r+aZwTIpN5OAp49BJG5PIc6Y29Gwqhgfw3xNANl21xzXC5ZbyP7AbAb5q8ec
OxlxPRunFkFtLA3kngPFj8rMOuBUEwezFxpMNVzcIyQp3saGrhP8RnGB/vaOQD7Q9d7i0zpEYsDW
cVRHZMtaWFDEWnRHnXvIUuY4BrIV8VlVI622I4KPDYL4ixVptCqbbtpzjOk//eZQAljgWs0p16j7
kjCStrDl3FkI2l/wxE3YMplDPq2xYrmUIVKiE9u9eTVLdxmVBnjJa0Kyy1Ob9BSGxvzLusYcktVt
CGQUby4Im6Rs53nFXJ9ZsMS9lF3xnpNrQ9IW35RX9t8rAGVlZWU=
------ccr end publickeys 1vrc5rot3ultpn6j------
user@host ~ $ ccr -p -F foobar > key.ccr
...take the file key.ccr to another machine...
user@anotherhost ~ $ ccr -n -i < key.ccr
pubkey MCEQCMDPC128FO-CUBE256-CHACHA20 @2a0a66bf52caf8c6ba99fa... foobar
user@anotherhost ~ $ ccr -i < key.ccr
user@anotherhost ~ $ ccr -k
pubkey MCEQCMDPC128FO-CUBE256-CHACHA20 @2a0a66bf52caf8c6ba99fa... foobar
... it's there!
A commentary:
- I create a keypair using
-g
- look at it using
-K
- export a public part of the keypair using
-p
to a filekey.ccr
- you can also import the ascii-armored key I printed out there, using
-pa
to YOUR ccr using import with-a
option.-a
option triggers ascii-armored output suitable for text processing. - I peek at the key on another machine, using
-n -i
-- it is like--import
, but with--no-action
to prevent accidentally importing something I don't want. - After I see that I really want to import the pubkey, I import it using
-i
.
If it doesn't work for you this way, please reopen with exact error.
from codecrypt.
Related Issues (20)
- Mac OSX install instructions HOT 1
- Annealmail Thunderbird Add-on HOT 9
- Avoid parameters that allow timing/statistical attacks when used as decryption oracle HOT 16
- error: ambiguous local user specified HOT 9
- [REJECTED] Windows binary HOT 1
- Secret key protection HOT 6
- Entropy ? HOT 3
- A Question regarding HWRNG HOT 3
- AES HOT 2
- Ubuntu Install Problem HOT 2
- Use LGPL v2.1 instead of v3 for better license compatibility HOT 5
- Rewrite in Rust HOT 4
- Compile issue on macOS HOT 6
- How about add seed support for FMTSeq ? HOT 1
- It takes more than 10 minutes to generate keypair... HOT 2
- signed git tags / signed git commits HOT 1
- Does codecrypt also provides security regarding classical computer attacks? HOT 6
- YAY: "Package 'libcrypto++', required by 'virtual:world', not found" HOT 4
- Long List Of Errors When Running `make` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codecrypt.