# Saving a password

**URL:** https://the.fmsoup.org/t/saving-a-password/4624
**Category:** Floating Topics
**Tags:** scripting, security, mbs
**Created:** [January 21, 2025, 2:24pm UTC](https://the.fmsoup.org/t/saving-a-password/4624 "2025-01-21T14:24:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![EdwinS](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@EdwinS](https://the.fmsoup.org/u/EdwinS)
#### Post date: [January 21, 2025, 2:24pm UTC](https://the.fmsoup.org/t/saving-a-password/4624/1 "2025-01-21T14:24:38Z")

</div>

Does anyone have an idea how the contents of a (password-)field can be saved in a keychain and being fetched back?  
MBS has a "Keychain" component, but only allows to store passwords, not to fetch them back.  
Just brewing the idea of creating a checkbox "save password", then storing it along with username and hostid into a table, fetching it the next time the field is used...  
I know, passwords must be stored in hashed form only, but any autofill function in a browser etc. must violate that.

---

<div class="post-metadata">

### Author: ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)
#### Post date: [January 21, 2025, 2:33pm UTC](https://the.fmsoup.org/t/saving-a-password/4624/2 "2025-01-21T14:33:49Z")

</div>

Well, I could of course add a get password function.  
But it would probably ask the user for permission...

---

<div class="post-metadata">

### Author: ![EdwinS](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@EdwinS](https://the.fmsoup.org/u/EdwinS)
#### Post date: [January 21, 2025, 2:47pm UTC](https://the.fmsoup.org/t/saving-a-password/4624/3 "2025-01-21T14:47:26Z")

</div>

OK, I see... Thanks, I'll implement my own "keychain" 🙂

---

<div class="post-metadata">

### Author: ![bdbd](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/bdbd/32/620_2.png) [@bdbd](https://the.fmsoup.org/u/bdbd)
#### Post date: [January 21, 2025, 3:12pm UTC](https://the.fmsoup.org/t/saving-a-password/4624/4 "2025-01-21T15:12:16Z")

</div>

> [@EdwinS](#):
>
> I know, passwords must be stored in hashed form only, but any autofill function in a browser etc. must violate that.

Autofill functions do not violate that rule. In MacOS, Keychain and Password do the autofill. Applications that request autofills have no idea what is stored in the keychain.
