[BF] Proper implementation of crypt()