1
0
Fork 0
mirror of https://github.com/anyproto/docs.git synced 2025-06-08 05:47:05 +09:00

GitBook: [#118] Keychain

This commit is contained in:
Vladimir Ermolaev 2021-11-17 14:41:19 +00:00 committed by gitbook-bot
parent c1823ca7ad
commit 941eeb5a9e
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF
4 changed files with 13 additions and 9 deletions

View file

@ -1,9 +1,13 @@
# How does passphrase login work?
# How does keychain phrase login work? Like password?
![](<../.gitbook/assets/Keychain phrase.png>)
This code is used to login on another device and recover your data. It works with special algorithms providing authorisation and encryption of your data at the same time.
### Tech
To keep your Data secure we, use the BIP39 Algorithm to derive keychain phrases and use the process of [**Key Derivation Function**](https://en.wikipedia.org/wiki/Key\_derivation\_function) to get all the information that needs to be associated with your passphrase.
### Steps
1. Your keychain phrase is used to derive your account's [**private key**](https://en.wikipedia.org/wiki/Public-key\_cryptography) using the [**BIP39 Algorithm**](https://medium.com/coinmonks/mnemonic-generation-bip39-simply-explained-e9ac18db9477)**.**
2. Then your private key is further used to derive your profile page with a [**Textile-DB thread ID**](https://github.com/textileio/go-threads)** **and the encryption key. This is how we ensure that your account is associated with your ID.
3. Then your private key is used to derive the ID and encryption key for the [**ThreadsDB**](https://github.com/textileio/go-threads#running-threaddb) that contains encryption keys for the rest of the [object](../fundamentals/object/ "mention") you have in Anytype.