# How IPNS, "ipfs key" keystore file name are made?

**URL:** <https://discuss.ipfs.tech/t/how-ipns-ipfs-key-keystore-file-name-are-made/11545>\
**Category:** Uncategorized\
**Created:** [June 17, 2021, 5:06pm UTC](https://discuss.ipfs.tech/t/how-ipns-ipfs-key-keystore-file-name-are-made/11545 "2021-06-17T17:06:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zicmama](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/zicmama/32/3722_2.png) [@zicmama](https://discuss.ipfs.tech/u/zicmama)\
**Post date:** [June 17, 2021, 5:06pm UTC](https://discuss.ipfs.tech/t/how-ipns-ipfs-key-keystore-file-name-are-made/11545/1 "2021-06-17T17:06:04Z")

</div>

I am seeking how to find the `~/.ipfs/keystore/key_ ******* ` file corresponding to an ipfs key name

ipfs key gen mykey  
is creating  
~/.ipfs/keystore/key\_nv4wwzlz

Do you know which hash function is used to transform mykey into nv4wwzlz ?

---

<div class="post-metadata">

**Author:** ![adin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/adin/32/2679_2.png) [@adin](https://discuss.ipfs.tech/u/adin)\
**Post date:** [June 17, 2021, 5:39pm UTC](https://discuss.ipfs.tech/t/how-ipns-ipfs-key-keystore-file-name-are-made/11545/2 "2021-06-17T17:39:42Z")

</div>

There’s no hashing it’s just a base32 encoding of the key’s name (i.e. `mykey`) [go-ipfs-keystore/keystore.go at 867da36b33e79c648c09a3871ad9a31ed0d2b26a · ipfs/go-ipfs-keystore · GitHub](https://github.com/ipfs/go-ipfs-keystore/blob/867da36b33e79c648c09a3871ad9a31ed0d2b26a/keystore.go#L164).
