Page 1 of 1
Mac address encryption
Posted: Sun Mar 29, 2015 9:26 pm
by expandables
Hi i know how to encrypt the raspberry pi with the cpu serial but I also want to know how i can do the same with the Mac address thanks.

Re: Mac address encryption
Posted: Sun Mar 29, 2015 9:53 pm
by DougieLawson
It's not sensible.
Try this
sudo ifdown eth0
sudo ifconfig eth0 hw ether AB:BC:CD:DE:EF
sudo ifup eth0
then tell me why it's not sensible.
Re: Mac address encryption
Posted: Sun Mar 29, 2015 9:57 pm
by expandables
I understand it can be spoofed i just wanted to know how i can do a mac address encryption.

Re: Mac address encryption
Posted: Sun Mar 29, 2015 10:07 pm
by DougieLawson
There is no point telling you, because it's not a sensible thing to do on Linux, Windows or OSX (because it's so easily spoofed).
On the Raspberry Pi the default b8:27:eb:xx:xx:xx MAC address is using the last six digits of the serial number anyway.
Re: Mac address encryption
Posted: Sun Mar 29, 2015 10:35 pm
by expandables
I not worried of it being spoofed i just wan to know how to do it.

Re: Mac address encryption
Posted: Sun Mar 29, 2015 10:42 pm
by DougieLawson
grep the MAC use that as a key.
But it's a lousy key, there aren't enough bits in it and it's never going to be secure.
The height of security technology from the 1970s (
http://en.wikipedia.org/wiki/Data_Encryption_Standard) is roughly the technique you'd be emulating.
To get any kind of security you need public/private keys with 2048 bits of entropy.
Re: Mac address encryption
Posted: Sun Mar 29, 2015 11:35 pm
by W. H. Heydt
Enter the command: man gpg