Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
squeeze 128 Bits into 32 (or even 16) bits of information without loss.
(If there was, you would have found the world's best compression algorithm)
Of course, when you only allow A-Z and 0-9 (26+10=36 different values per password
character), then you could store a 6 byte long password into a 32-bit integer.
// code sample: packing 6 byte character string (with each byte within 0 and 35)
unsigned long ulPwd,i;
char sPwd[6];
ulPwd=0;
for(i=0;i<6;i++) {
ulPwd*=36;
ulPwd+=i;
}
// sPwd[] must be manually converted from 0-9,A-Z(chars) to 0-35(values) before this routine.
// unpacking
unsigned long ulPwd,i;
char sPwd[6];
ulPwd= /// some value determined before
for(i=0;i<6;i++) {
sPwd[i]=ulPwd % 36;
ulPwd-=sPwd[i];
ulPwd/=36;
}
// after that, sPwd[] contains again values in the range 0-35.