align encryption of hdnode with mnemonic logic