static long First(long cardPublicKey, long doorPublicKey) { var lockSystem = new LockSystem() { CardPublicKey = cardPublicKey, DoorPublicKey = doorPublicKey }; lockSystem.ReverseCardLoopSize(); lockSystem.ReverseDoorLoopSize(); lockSystem.ReverseEncryptionKey(); return(lockSystem.EncryptionKey); }