Awesome
<h1 align="center"> <img src="./keyring.svg" alt="Godot Keyring" width=128><br> š Godot Keyring </h1>"Godot Keyring" is a Godot addon to interact with the OS keyring.<br>
The addon itself is a wrapper of keychain by @hrantzsch to allow cross-platform support.
š Usage
#some_node.gd
func store_password(user: String, password: String) -> void:
if password.is_empty() or user.is_empty():
print("Trying to store non valid credentials.")
return
Keyring.set_password("my_cool_application", "credentials", user, password)
func login(user: String) -> void:
var password := Keyring.get_password("my_cool_application", "credentials", user)
if password.is_empty():
return
# Use password
...
š ļø Building
Requirements
Run the scons command to build the addon:
$ scons
You can also specify to which platform compile:
$ scons platform=windows
āØ Credits
"Godot Keyring" logo by @archaeopteryz
š¼ License
Licensed under the MIT license, see LICENSE
The code in "src/keychain" is licensed under the MIT license, see keychain/LICENSE