How to hashing and encrypting command sent from Microbit to another mircotbit over radio

Need to implement AES and Sha256 for the commands sent over radio.