草庐IT

c - memfrob函数的设计与使用

来自manpageofmemfrob:void*memfrob(void*s,size_tn);Thememfrob()functionencryptsthefirstnbytesofthememoryareasbyexclusive-ORingeachcharacterwiththenumber42.Theeffectcanbereversedbyusingmemfrob()ontheencryptedmemoryarea.NotethatthisfunctionisnotaproperencryptionroutineastheXORconstantisfixed,andisonl

c - memfrob函数的设计与使用

来自manpageofmemfrob:void*memfrob(void*s,size_tn);Thememfrob()functionencryptsthefirstnbytesofthememoryareasbyexclusive-ORingeachcharacterwiththenumber42.Theeffectcanbereversedbyusingmemfrob()ontheencryptedmemoryarea.NotethatthisfunctionisnotaproperencryptionroutineastheXORconstantisfixed,andisonl