Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Mr.Osaka
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by Mr.Osaka

    • [MySigningAtsha204Soft 1.5.4] HMAC linux keygenerator

      Hallo,
      for linux user i wrote a helpful script for creating random key (32 hex) for
      MyConfig.h - #define MY_HMAC_KEY with the correct formatting.

      Stefano

      #!/bin/bash
      
      # mysensors_HMAC-key.sh
      #
      # generate a hex 32bit random key for 
      # MyConfig.h - #define MY_HMAC_KEY 0x00,0x00,0x00,......
      # 
      #
      # Created by Stefano Gottardi <st.gottardi (at) libero.it>
      #
      # This program is free software; you can redistribute it and/or
      # modify it under the terms of the GNU General Public License
      # version 2 as published by the Free Software Foundation.
      
      if ! which openssl > /dev/null
      then
      	echo "openssl is not installed"
      	exit -1
      fi
      
      key=`openssl rand -hex 32`
      COUNTER=2
      MYSENS_KEY="0x${key:0:2}"
      
      until [  $COUNTER -eq 64 ]; do
      	STRING=${key:$COUNTER:2}
      	MYSENS_KEY="$MYSENS_KEY,0x$STRING"
      	let COUNTER+=2
      done
      
      echo $MYSENS_KEY
      
      exit 0
      
      posted in General Discussion
      Mr.Osaka
      Mr.Osaka
    • RE: [1.5.4] setDestination remove signing (MySigningAtsha204Soft)

      the answer for this problem is here
      technically possible, but hard to implement.
      Stefano

      posted in Troubleshooting
      Mr.Osaka
      Mr.Osaka