Hide Private keys into your device using a phrase (Auditable)

HTML single standalone file - Encryption Decryption tool
User avatar
axew3
w3all User
w3all User
Posts: 3110
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Skype: axewww

Hide Private keys into your device using a phrase (Auditable)

Post by axew3 »

w3myPQ and bennyPQ will implement the cinciaKeys feature.

-You will not need to worry about where to store your private keys.


The new BennyPQ post quantum encryption and decryption tool is (again) a single HTML standalone file:
Encrypt Decrypt using BennyPQ

1. The Input Sanitization & Key Conversion
PEM Stripping:

When a text file is uploaded, the code automatically detects and strips away standard boundaries like -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- to isolate the pure hexadecimal payload.
Phrase-to-Numbers Mapping: It cleans the user's secret phrase, enforcing an international alphabet rule (A-Z, case-sensitive) and a minimum 10-character length. It converts lowercase letters to numbers 1–26 and uppercase letters to 50–76.
The Trailing Number Fallback: If the phrase ends with a 4-digit number (like a year), it splits it into two double-digit index markers. If no number is provided, it deterministically calculates a pseudo-year by hashing the sum of the phrase letters.


2. The Split & Obfuscation Engine (The Stream Cipher)
The Progressive Chain Leap (The Avalanche Effect):

The raw hex key is cut exactly in half. For each half, the numbers derived from the phrase dictate a progressive series of index hops along the key string. Because each jump position is added to the previous one, changing even a single capital letter completely alters every single position.
Irreversible XOR Transformations: Instead of replacing and erasing the original hex characters (which would make recovery impossible), the engine mixes the original character with the phrase number using a modulo-16 XOR (^) operation. This flips the characters into a random mix of letters and numbers without losing data.
The Food-Hoarding Nest (95 Decoys): The engine creates an array of 97 elements. It places the two obfuscated real key halves into the precise positions dictated by the year digits (under modulo 97). The remaining 95 rows are filled with crypto-secure random hexadecimal noise, making the real pieces completely indistinguishable to malware or forensic scanners. It then exports this as a 97-line file (chickadee_nest.txt).

3. The Rebuild Engine (Flawless Recovery)
Index Target Location:
When the nest file and the correct phrase are re-submitted, the engine uses the phrase to pinpoint the exact two rows containing the real halves out of the 97 lines.
Specular Subtraction: It runs the progressive position hops in the exact same sequence. Because reversing an XOR operation simply requires running XOR a second time, the engine perfectly peels away the injected phrase values and restores the authentic hex characters.
PEM Boundary Re-injection: Once the halves are stitched back together, it packages the key as a binary ArrayBuffer in the console, wraps the text version back into its official -----BEGIN PRIVATE KEY----- headers, displays it on the screen for easy clipboard copying, and provides a download button.

Coming soon!
User avatar
axew3
w3all User
w3all User
Posts: 3110
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Skype: axewww

Re: Hide Private keys into your device using a phrase (Auditable)

Post by axew3 »

WoW!
BPQ version 2.0.0 with Cincia keys embedded has been released!
https://www.axew3.com/w3/bpq-2-0-0-cincia-keys-vault/