Supports YubiKey HMAC KDF Encryption #1

Closed
opened 2022-04-02 00:54:47 +08:00 by hatter · 1 comment
Owner

Background

Use YubiKey HMAC KDF encryption file

~/.tinyencrypt_config.json add HMAC supports:

{
  "hmacHello": "helloworld",
  "hmacHelloResponse": "30a8353d742c690a62397018f6f520fc990239a7"
}

hmacHelloRespnonse 匹配时则可以通过 HMAC KDF 进行加密。

Flow:
let key = data encryption key;
let hmac_nonce = secure_random();
let hmac_kdf_key = yubikey_kdf(hmac_nonce);
let hmac_encrypted_key = encrypt(hmac_kdf_key, key);

meta.json:

{
  "hmacNonce": "hex(hmac_nonce)",
  "hmacEnvelop": "hex(hmac_encrypted_key)"
}
Background Use YubiKey HMAC KDF encryption file `~/.tinyencrypt_config.json` add HMAC supports: ```json { "hmacHello": "helloworld", "hmacHelloResponse": "30a8353d742c690a62397018f6f520fc990239a7" } ``` 当 `hmacHelloRespnonse` 匹配时则可以通过 HMAC KDF 进行加密。 Flow: let key = data encryption key; let hmac_nonce = secure_random(); let hmac_kdf_key = yubikey_kdf(hmac_nonce); let hmac_encrypted_key = encrypt(hmac_kdf_key, key); `meta.json`: ```json { "hmacNonce": "hex(hmac_nonce)", "hmacEnvelop": "hex(hmac_encrypted_key)" } ```
Author
Owner

local private private key supports hmac encryption, cancel this issue

local private private key supports hmac encryption, cancel this issue
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hatter/tiny-encrypt-java#1