5684a3747af8247a6203ad8993478d7240fc80ea
RED_CRYPTO ver 0.2.0
Description
Password manager for (almost) any QMK keyboards. Supports cryptographic algorithms:
- AES256,
- Kuznechik (Russian GOST cipher),
- SHA256.
Installation
-
Clone this repo to your keymap folder.
-
Copy this string to rules.mk. Don't forget to insert your names. This is make rules for including all needed file to firmwire.
include keyboards/<keyboard>/<path to your keymap folder>/red_crypto/red_crypto.mk
- Import library in keymap.c.
#include "red_crypto/red_crypto.h"
- Enable chosen algorithms. Now you can use only
Kuznechik.
#define USE_KUZNECHIK_8
- Encrypt your passwords with chosen algorithm (AES, Kuznechik). Now available only Kuznechik. You can use
CyberChef. Don't use web version! We are here for security, right? ChooseGOST Cipher, then choose typeKuznechik 34.12-2014, not Magma. Choose mode ECB. Now, there is no CBC or CTR.
Don't forget IV for GOST
94208510C2C001FB01C0C21085209401
- Add your encrypted passwords in "keymap.c". Now you can encrypt 2 passwords with length <=16 byte. Keep this information in secret. Even if there are no plaintext.
const uint8_t encrypted_passwords[2][16] = { {0,0,0,...,0,0,0}, {0,0,0,...,0,0,0} };
- Add new layer or set new keyes everywhere you want.
RED_TEST- execute test functions of every algorithm with. Available only with#define TEST_FUNCTIONS_ENABLEDandCOMMAND_ENABLE=yes. You can see output viahid_listen.GET_PASS- execute reading password for encrypted passwords. After entering password, tap this key again. Now, you can useRED_PASSXkeys.RED_PASSX- whereXis number of your password in database. After tapping, keyboard send decrypted password.RED_RNG- use 32 times function namedtap_random_base64from QMK. It's for generating random strings. But now random seed is not unique for every keyboard's power on.
- Copy this string to function process_record_user in keymap.c before all your code. It uses "switch case" construction inside.
crypto_process_record_user(keycode,event,encrypted_passwords);
- Flash your keyboard.
Usage
Tap GET_PASS. Enter password. Tap GET_PASS again to confirm.
Now you can use RED_PASSX to send decrypted passwords.
If you have missed while entering password, just tap GET_PASS and tap GET_PASS.
Description
Password manager for (almost) any QMK keyboards.
117 KiB
0 Stars
1 Watchers
0 Forks